Skip to content

Commit 94c0edc

Browse files
coolreader18Centril
authored andcommitted
wip
switch to sats-based deserialization ModuleInstance impl wip
1 parent 413c8cb commit 94c0edc

14 files changed

Lines changed: 922 additions & 26 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,6 @@ termcolor = "1.2.0"
264264
thin-vec = "0.2.13"
265265
thiserror = "1.0.37"
266266
tokio = { version = "1.37", features = ["full"] }
267-
tokio_metrics = { version = "0.4.0" }
268267
tokio-postgres = { version = "0.7.8", features = ["with-chrono-0_4"] }
269268
tokio-stream = "0.1.17"
270269
tokio-tungstenite = { version = "0.27.0", features = ["native-tls"] }

crates/core/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ jwks.workspace = true
118118
async_cache = "0.3.1"
119119
faststr = "0.2.23"
120120
core_affinity = "0.8"
121+
num-traits = "0.2"
122+
# sourcemap = "9"
121123

122124
[target.'cfg(not(target_env = "msvc"))'.dependencies]
123125
tikv-jemallocator = {workspace = true}

crates/core/src/host/v8/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.js

crates/core/src/host/v8/de.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl de::Error for Error<'_> {
9292
}
9393

9494
/// Returns a scratch buffer to fill when deserializing strings.
95-
fn scratch_buf<const N: usize>() -> [MaybeUninit<u8>; N] {
95+
pub(super) fn scratch_buf<const N: usize>() -> [MaybeUninit<u8>; N] {
9696
[const { MaybeUninit::uninit() }; N]
9797
}
9898

crates/core/src/host/v8/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ impl IntoJsString for String {
2222
///
2323
/// Newtyped for additional type safety and to track JS exceptions in the type system.
2424
#[derive(Debug)]
25-
pub(super) struct ExceptionValue<'scope>(Local<'scope, Value>);
25+
pub(super) struct ExceptionValue<'scope>(pub Local<'scope, Value>);
2626

2727
/// Error types that can convert into JS exception values.
2828
pub(super) trait IntoException<'scope> {

0 commit comments

Comments
 (0)