Skip to content

Commit

Permalink
Update wasm-tools and wit-bindgen crates.
Browse files Browse the repository at this point in the history
This is primarily to pull in bytecodealliance/wasm-tools#1252 to get
decoding of the new format into a Wasmtime release ASAP.
  • Loading branch information
alexcrichton committed Oct 19, 2023
1 parent 20d3056 commit 113d827
Show file tree
Hide file tree
Showing 5 changed files with 145 additions and 92 deletions.
100 changes: 35 additions & 65 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -213,18 +213,18 @@ io-extras = "0.18.0"
rustix = "0.38.8"
is-terminal = "0.4.0"
# wit-bindgen:
wit-bindgen = { version = "0.12.0", default-features = false }
wit-bindgen = { version = "0.13.0", default-features = false }

# wasm-tools family:
wasmparser = "0.113.2"
wat = "1.0.74"
wast = "65.0.2"
wasmprinter = "0.2.67"
wasm-encoder = "0.33.2"
wasm-smith = "0.12.18"
wasm-mutate = "0.2.35"
wit-parser = "0.11.3"
wit-component = "0.14.4"
wasmparser = "0.115.0"
wat = "1.0.77"
wast = "66.0.2"
wasmprinter = "0.2.70"
wasm-encoder = "0.35.0"
wasm-smith = "0.12.21"
wasm-mutate = "0.2.38"
wit-parser = "0.12.1"
wit-component = "0.16.0"

# Non-Bytecode Alliance maintained dependencies:
# --------------------------
Expand Down
4 changes: 4 additions & 0 deletions crates/wasmtime/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,10 @@ impl Config {
ret.wasm_simd(true);
ret.wasm_backtrace_details(WasmBacktraceDetails::Environment);

ret.wasm_threads(false);
ret.wasm_relaxed_simd(false);
ret.wasm_multi_memory(false);

// This is on-by-default in `wasmparser` since it's a stage 4+ proposal
// but it's not implemented in Wasmtime yet so disable it.
ret.features.tail_call = false;
Expand Down
2 changes: 2 additions & 0 deletions crates/wast/src/wast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ impl<T> WastContext<T> {
}
}
AssertException { .. } => bail!("unimplemented assert_exception"),
Thread(_) => bail!("unimplemented thread"),
Wait { .. } => bail!("unimplemented wait"),
}

Ok(())
Expand Down
Loading

0 comments on commit 113d827

Please sign in to comment.