Skip to content

Update wasmparser dependency to version 0.227 #4454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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]]
2 changes: 1 addition & 1 deletion crates/threads-xform/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"

2 changes: 1 addition & 1 deletion crates/wasm-conventions/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions crates/wasm-conventions/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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<MemoryId> {
@@ -192,7 +192,7 @@ pub fn target_feature(module: &Module, feature: &str) -> Result<bool> {
.as_any()
.downcast_ref()
.context("failed to read section")?;
let mut reader = BinaryReader::new(&section.data, 0, WasmFeatures::default());
let mut reader = BinaryReader::new(&section.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(&section.data, 0, WasmFeatures::default());
let mut reader = BinaryReader::new(&section.data, 0);
// The first integer contains the target feature count.
let count = reader.read_var_u32()?;

Loading