diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 2e9b8a28019..dab9db83e00 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -41,7 +41,7 @@ assert_cmd = "2" diff = "0.1" predicates = "3" rayon = "1.0" -wasmparser = "0.214" +wasmparser = "0.227" wasmprinter = "0.214" [[test]] diff --git a/crates/threads-xform/Cargo.toml b/crates/threads-xform/Cargo.toml index f32e53d59e2..701a2a16705 100644 --- a/crates/threads-xform/Cargo.toml +++ b/crates/threads-xform/Cargo.toml @@ -20,7 +20,7 @@ wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2. [dev-dependencies] rayon = "1.0" -wasmparser = "0.214" +wasmparser = "0.227" wasmprinter = "0.214" wat = "1.0" diff --git a/crates/wasm-conventions/Cargo.toml b/crates/wasm-conventions/Cargo.toml index 3554087cbde..3bbf49f35b3 100644 --- a/crates/wasm-conventions/Cargo.toml +++ b/crates/wasm-conventions/Cargo.toml @@ -17,7 +17,7 @@ walrus = "0.23" # Matching the version `walrus` depends on. anyhow = "1.0" log = "0.4" -wasmparser = "0.214" +wasmparser = "0.227" [lints] workspace = true diff --git a/crates/wasm-conventions/src/lib.rs b/crates/wasm-conventions/src/lib.rs index beb0fe9da09..b7e8022bdb7 100755 --- a/crates/wasm-conventions/src/lib.rs +++ b/crates/wasm-conventions/src/lib.rs @@ -13,7 +13,7 @@ use walrus::{ ir::Value, ConstExpr, ElementId, ElementItems, FunctionBuilder, FunctionId, FunctionKind, GlobalId, GlobalKind, MemoryId, Module, RawCustomSection, ValType, }; -use wasmparser::{BinaryReader, WasmFeatures}; +use wasmparser::BinaryReader; /// Get a Wasm module's canonical linear memory. pub fn get_memory(module: &Module) -> Result { @@ -192,7 +192,7 @@ pub fn target_feature(module: &Module, feature: &str) -> Result { .as_any() .downcast_ref() .context("failed to read section")?; - let mut reader = BinaryReader::new(§ion.data, 0, WasmFeatures::default()); + let mut reader = BinaryReader::new(§ion.data, 0); // The first integer contains the target feature count. let count = reader.read_var_u32()?; @@ -237,7 +237,7 @@ pub fn insert_target_feature(module: &mut Module, new_feature: &str) -> Result<( .as_any_mut() .downcast_mut() .context("failed to read section")?; - let mut reader = BinaryReader::new(§ion.data, 0, WasmFeatures::default()); + let mut reader = BinaryReader::new(§ion.data, 0); // The first integer contains the target feature count. let count = reader.read_var_u32()?;