Skip to content

Commit a2a4db5

Browse files
committed
Update wasmparser dependency to version 0.227
1 parent c35cc93 commit a2a4db5

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

crates/cli/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ assert_cmd = "2"
4141
diff = "0.1"
4242
predicates = "3"
4343
rayon = "1.0"
44-
wasmparser = "0.214"
44+
wasmparser = "0.227"
4545
wasmprinter = "0.214"
4646

4747
[[test]]

crates/threads-xform/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ wasm-bindgen-wasm-conventions = { path = "../wasm-conventions", version = "=0.2.
2020

2121
[dev-dependencies]
2222
rayon = "1.0"
23-
wasmparser = "0.214"
23+
wasmparser = "0.227"
2424
wasmprinter = "0.214"
2525
wat = "1.0"
2626

crates/wasm-conventions/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ walrus = "0.23"
1717
# Matching the version `walrus` depends on.
1818
anyhow = "1.0"
1919
log = "0.4"
20-
wasmparser = "0.214"
20+
wasmparser = "0.227"
2121

2222
[lints]
2323
workspace = true

crates/wasm-conventions/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use walrus::{
1313
ir::Value, ConstExpr, ElementId, ElementItems, FunctionBuilder, FunctionId, FunctionKind,
1414
GlobalId, GlobalKind, MemoryId, Module, RawCustomSection, ValType,
1515
};
16-
use wasmparser::{BinaryReader, WasmFeatures};
16+
use wasmparser::BinaryReader;
1717

1818
/// Get a Wasm module's canonical linear memory.
1919
pub fn get_memory(module: &Module) -> Result<MemoryId> {
@@ -192,7 +192,7 @@ pub fn target_feature(module: &Module, feature: &str) -> Result<bool> {
192192
.as_any()
193193
.downcast_ref()
194194
.context("failed to read section")?;
195-
let mut reader = BinaryReader::new(&section.data, 0, WasmFeatures::default());
195+
let mut reader = BinaryReader::new(&section.data, 0);
196196
// The first integer contains the target feature count.
197197
let count = reader.read_var_u32()?;
198198

@@ -237,7 +237,7 @@ pub fn insert_target_feature(module: &mut Module, new_feature: &str) -> Result<(
237237
.as_any_mut()
238238
.downcast_mut()
239239
.context("failed to read section")?;
240-
let mut reader = BinaryReader::new(&section.data, 0, WasmFeatures::default());
240+
let mut reader = BinaryReader::new(&section.data, 0);
241241
// The first integer contains the target feature count.
242242
let count = reader.read_var_u32()?;
243243

0 commit comments

Comments
 (0)