From ba1f2638d2979bcd86313f9429c48da22478adc8 Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Tue, 25 Jun 2024 13:08:24 +0200 Subject: chore: update deps & testsuite, add msrv Signed-off-by: Henry Gressmann --- crates/parser/Cargo.toml | 3 ++- crates/parser/src/conversion.rs | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'crates/parser') diff --git a/crates/parser/Cargo.toml b/crates/parser/Cargo.toml index 1f1d194..5b28112 100644 --- a/crates/parser/Cargo.toml +++ b/crates/parser/Cargo.toml @@ -6,9 +6,10 @@ edition.workspace=true license.workspace=true authors.workspace=true repository.workspace=true +rust-version.workspace=true [dependencies] -wasmparser={version="0.210", default-features=false, features=["validate"]} +wasmparser={version="0.211", default-features=false, features=["validate"]} log={version="0.4", optional=true} tinywasm-types={version="0.7.0", path="../types", default-features=false} diff --git a/crates/parser/src/conversion.rs b/crates/parser/src/conversion.rs index e8dd9a8..59c023e 100644 --- a/crates/parser/src/conversion.rs +++ b/crates/parser/src/conversion.rs @@ -256,8 +256,10 @@ pub(crate) fn process_const_operators(ops: OperatorsReader<'_>) -> Result ValType { match heap { - wasmparser::HeapType::Func => ValType::RefFunc, - wasmparser::HeapType::Extern => ValType::RefExtern, + wasmparser::HeapType::Abstract { shared: false, ty: wasmparser::AbstractHeapType::Func } => ValType::RefFunc, + wasmparser::HeapType::Abstract { shared: false, ty: wasmparser::AbstractHeapType::Extern } => { + ValType::RefExtern + } _ => unimplemented!("Unsupported heap type: {:?}", heap), } } -- cgit v1.3.1