From 2acc65495e3b802eda168ca0e02823bb8e302dbe Mon Sep 17 00:00:00 2001 From: Philip Craig Date: Fri, 2 Jan 2026 13:47:24 +1000 Subject: [PATCH] Update wasmparser dependency --- Cargo.toml | 2 +- src/read/wasm.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0e95517..36ee941 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ features = ['doc'] crc32fast = { version = "1.2", default-features = false, optional = true } flate2 = { version = "1", optional = true } indexmap = { version = "2.0", default-features = false, optional = true } -wasmparser = { version = "0.241.2", default-features = false, optional = true } +wasmparser = { version = "0.243.0", default-features = false, optional = true } memchr = { version = "2.4.1", default-features = false } hashbrown = { version = "0.16.0", features = ["default-hasher"], default-features = false, optional = true } ruzstd = { version = "0.8.1", optional = true } diff --git a/src/read/wasm.rs b/src/read/wasm.rs index 7062574..636aa51 100644 --- a/src/read/wasm.rs +++ b/src/read/wasm.rs @@ -234,7 +234,7 @@ impl<'data, R: ReadRef<'data>> WasmFile<'data, R> { for import in imports { let import = import.read_error("Couldn't read an import item")?; let kind = match import.ty { - wp::TypeRef::Func(_) => { + wp::TypeRef::Func(_) | wp::TypeRef::FuncExact(_) => { import_func_names.push(import.name); SymbolKind::Text } @@ -399,7 +399,7 @@ impl<'data, R: ReadRef<'data>> WasmFile<'data, R> { let export = export.read_error("Couldn't read an export item")?; let (kind, section_idx) = match export.kind { - wp::ExternalKind::Func => { + wp::ExternalKind::Func | wp::ExternalKind::FuncExact => { if let Some(local_func_id) = export.index.checked_sub(import_func_names.len() as u32) {