Update wasmparser dependency

This commit is contained in:
Philip Craig
2026-01-02 13:47:24 +10:00
parent a126238fbf
commit 2acc65495e
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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 }
+2 -2
View File
@@ -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)
{