Skip to content

Commit 7010129

Browse files
coolreader18Centril
authored andcommitted
wip
switch to sats-based deserialization ModuleInstance impl wip
1 parent ad9ad60 commit 7010129

12 files changed

Lines changed: 1194 additions & 10 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.26.2", 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
@@ -62,7 +62,7 @@ impl de::Error for Error<'_> {
6262
}
6363

6464
/// Returns a scratch buffer to fill when deserializing strings.
65-
fn scratch_buf<const N: usize>() -> [MaybeUninit<u8>; N] {
65+
pub(super) fn scratch_buf<const N: usize>() -> [MaybeUninit<u8>; N] {
6666
[const { MaybeUninit::uninit() }; N]
6767
}
6868

0 commit comments

Comments
 (0)