summaryrefslogtreecommitdiff
path: root/crates/parser
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-06-25 13:08:24 +0200
committerHenry Gressmann <mail@henrygressmann.de>2024-06-25 13:08:24 +0200
commitba1f2638d2979bcd86313f9429c48da22478adc8 (patch)
treecc31b34854f8432ba4a8a2023c8d38e0d4def1c8 /crates/parser
parentfc76c1eeddc3b0e0be6a1cc0490fdd2b178c8875 (diff)
chore: update deps & testsuite, add msrv
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser')
-rw-r--r--crates/parser/Cargo.toml3
-rw-r--r--crates/parser/src/conversion.rs6
2 files changed, 6 insertions, 3 deletions
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<ConstI
pub(crate) fn convert_heaptype(heap: wasmparser::HeapType) -> 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),
}
}