Bartek Iwańczuk
dda0f1c343
refactor(serde_v8): split ZeroCopyBuf into JsBuffer and ToJsBuffer ( #19566 )
...
`ZeroCopyBuf` was convenient to use, but sometimes it did hide details
that some copies were necessary in certain cases. Also it made it way to easy
for the caller to pass around and convert into different values. This commit
splits `ZeroCopyBuf` into `JsBuffer` (an array buffer coming from V8) and
`ToJsBuffer` (a Rust buffer that will be converted into a V8 array buffer).
As a result some magical conversions were removed (they were never used)
limiting the API surface and preparing for changes in #19534 .
2023-06-22 23:37:56 +02:00
Bartek Iwańczuk
2ec366f544
refactor(serde_v8): remove ZeropCopyBuf::Temp ( #19563 )
...
Not used anymore.
2023-06-21 15:35:06 +02:00
Bartek Iwańczuk
1054723a4b
feat(serde_v8): better error output ( #18815 )
...
The type that was received is now printed as part of a message.
2023-04-27 02:12:39 +02:00
Divy Srivastava
ea7ca00c89
perf: use ops for node:crypto ciphers ( #17819 )
...
Towards #17809
2023-02-20 22:22:28 +05:30
Divy Srivastava
d5634164cb
chore: use rustfmt imports_granularity option ( #17421 )
...
Closes https://github.com/denoland/deno/issues/2699
Closes https://github.com/denoland/deno/issues/2347
Uses unstable rustfmt features. Since dprint invokes `rustfmt` we do not
need to switch the cargo toolchain to nightly. Do we care about
formatting stability of our codebase across Rust versions? (I don't)
2023-01-14 23:18:58 -05:00
David Sherret
10e4b2e140
chore: update copyright year to 2023 ( #17247 )
...
Yearly tradition of creating extra noise in git.
2023-01-02 21:00:42 +00:00
Divy Srivastava
bfc1fb8d68
perf(serde_v8): serde_v8::StringOrBuffer
return JS ArrayBuffer instead of Uint8Array ( #16360 )
...
Towards #16315
2022-10-20 16:03:57 +05:30
Divy Srivastava
e267ec6ed5
chore(serde_v8): take mutable reference in ToV8::to_v8
( #15707 )
2022-09-01 15:54:40 +05:30
Aaron O'Mullan
67e5a850cc
feat(serde_v8): bytes::Bytes support ( #14412 )
2022-05-13 12:53:13 +02:00
Aaron O'Mullan
12f7581ed9
cleanup(serde_v8): disambiguate ZeroCopyBuf ( #14380 )
2022-04-25 16:56:47 +02:00
Aaron O'Mullan
4b7d306a19
perf(serde_v8): zero-copy StringOrBuffer ( #14381 )
2022-04-24 09:28:46 -03:00
Aaron O'Mullan
6516130b01
chore: drop src/ in bench_util & serde_v8 ( #14097 )
...
To align with conventions used in our other crates
2022-03-24 11:23:40 +01:00