Skip to content

Commit

Permalink
Replace wasmparser-nostd fork with upstream wasmparser (#1141)
Browse files Browse the repository at this point in the history
* update wasmparser dependency to upstream

* update to wasmparser v0.214.0

* use WasmFeatures in Config

The new WasmFeatures type requires a bit less stack space due to bitfield usage.
Ideally we use our own bitfield based type but this is more work.

* adjustments after merging with main

* reinstate type check in TableEntity::init

* update to wasmparser v0.218.0

* enable GC_TYPES when REFERENCE_TYPES is enabled

* shift method to reduce diff

* remove outdated comment

* refactor: shrink LazyFuncTranslator stack size

* update wasmparser to v0.219.0

* use new FuncBody::as_bytes API where useful

This allows us to avoid a nasty work around.

* leftovers from merge

* update to `wasmparser` v0.220 and propagate crate features

* update Cargo.lock

* fixes after merge

* update wasm-tools dependencies

* update cargo deps

* disable memory64 for wasm-smith

* update to wasmparser v0.221
  • Loading branch information
Robbepop authored Nov 27, 2024
1 parent e25e3a8 commit f732c6c
Show file tree
Hide file tree
Showing 15 changed files with 319 additions and 186 deletions.
93 changes: 63 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions crates/wasmi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exclude = [
]

[dependencies]
wasmparser = { version = "0.100.2", package = "wasmparser-nostd", default-features = false }
wasmparser = { version = "0.221.0", default-features = false, features = ["validate", "features"] }
wasmi_core = { workspace = true }
wasmi_collections = { workspace = true }
wasmi_ir = { workspace = true }
Expand Down Expand Up @@ -48,8 +48,14 @@ std = [
"spin/std",
"arrayvec/std",
]
hash-collections = ["wasmi_collections/hash-collections"]
prefer-btree-collections = ["wasmi_collections/prefer-btree-collections"]
hash-collections = [
"wasmi_collections/hash-collections",
"wasmparser/hash-collections",
]
prefer-btree-collections = [
"wasmi_collections/prefer-btree-collections",
"wasmparser/prefer-btree-collections",
]

# Enables extra checks performed during Wasmi bytecode execution.
#
Expand Down
Loading

0 comments on commit f732c6c

Please sign in to comment.