Skip to content

Commit fe1c463

Browse files
coolreader18Centril
authored andcommitted
wip
switch to sats-based deserialization ModuleInstance impl wip
1 parent 59b6939 commit fe1c463

13 files changed

Lines changed: 1098 additions & 14 deletions

File tree

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"tabWidth": 4,
3+
"useTabs": false,
4+
"semi": true,
5+
"singleQuote": true,
6+
"arrowParens": "avoid",
7+
"jsxSingleQuote": false,
8+
"trailingComma": "es5",
9+
"endOfLine": "auto",
10+
"printWidth": 100
11+
}

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
@@ -262,7 +262,6 @@ termcolor = "1.2.0"
262262
thin-vec = "0.2.13"
263263
thiserror = "1.0.37"
264264
tokio = { version = "1.37", features = ["full"] }
265-
tokio_metrics = { version = "0.4.0" }
266265
tokio-postgres = { version = "0.7.8", features = ["with-chrono-0_4"] }
267266
tokio-stream = "0.1.17"
268267
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
@@ -105,7 +105,7 @@ impl de::Error for Error<'_> {
105105
}
106106

107107
/// Returns a scratch buffer to fill when deserializing strings.
108-
fn scratch_buf<const N: usize>() -> [MaybeUninit<u8>; N] {
108+
pub(super) fn scratch_buf<const N: usize>() -> [MaybeUninit<u8>; N] {
109109
[const { MaybeUninit::uninit() }; N]
110110
}
111111

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

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

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

0 commit comments

Comments
 (0)