Skip to content

Commit

Permalink
Update the wasm-tools family of crates (#8882)
Browse files Browse the repository at this point in the history
* Update the wasm-tools family of crates

This notably brings in a limitation where component model flags types
must have 32 or fewer flags in accordance with the transition plan of
WebAssembly/component-model#370. A feature
flag is added to go back to the previous behavior to avoid breaking
anyone too much.

This additionally brings in a fix for a panic when validating invalid
modules with tail calls.

* Add vet entries
  • Loading branch information
alexcrichton authored Jul 8, 2024
1 parent a068bfe commit 18a6c71
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 68 deletions.
112 changes: 56 additions & 56 deletions Cargo.lock

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

18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -253,15 +253,15 @@ wit-bindgen = { version = "0.26.0", default-features = false }
wit-bindgen-rust-macro = { version = "0.26.0", default-features = false }

# wasm-tools family:
wasmparser = { version = "0.211.1", default-features = false }
wat = "1.211.1"
wast = "211.0.1"
wasmprinter = "0.211.1"
wasm-encoder = "0.211.1"
wasm-smith = "0.211.1"
wasm-mutate = "0.211.1"
wit-parser = "0.211.1"
wit-component = "0.211.1"
wasmparser = { version = "0.212.0", default-features = false }
wat = "1.212.0"
wast = "212.0.0"
wasmprinter = "0.212.0"
wasm-encoder = "0.212.0"
wasm-smith = "0.212.0"
wasm-mutate = "0.212.0"
wit-parser = "0.212.0"
wit-component = "0.212.0"

# Non-Bytecode Alliance maintained dependencies:
# --------------------------
Expand Down
3 changes: 3 additions & 0 deletions crates/cli-flags/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ wasmtime_option_group! {
pub memory64: Option<bool>,
/// Configure support for the component-model proposal.
pub component_model: Option<bool>,
/// Configure support for 33+ flags in the component model.
pub component_model_more_flags: Option<bool>,
/// Configure support for the function-references proposal.
pub function_references: Option<bool>,
/// Configure support for the GC proposal.
Expand Down Expand Up @@ -674,6 +676,7 @@ impl CommonOptions {

handle_conditionally_compiled! {
("component-model", component_model, wasm_component_model)
("component-model", component_model_more_flags, wasm_component_model_more_flags)
("threads", threads, wasm_threads)
("gc", gc, wasm_gc)
("gc", reference_types, wasm_reference_types)
Expand Down
Loading

0 comments on commit 18a6c71

Please sign in to comment.