Skip to content

Commit

Permalink
chore(tooling): Use wasmer instead of wasmi (#4261)
Browse files Browse the repository at this point in the history
  • Loading branch information
ark0f authored Sep 29, 2024
1 parent 1ca6289 commit 8ad1139
Show file tree
Hide file tree
Showing 19 changed files with 224 additions and 330 deletions.
90 changes: 17 additions & 73 deletions Cargo.lock

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

12 changes: 1 addition & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ wabt = "0.10.0"
wasmer = "4.3.4"
wasmer-cache = "4.3.4"
wasmer-types = "4.3.4"
wasmi = { version = "0.14.0", default-features = false }
wasmtime = "8.0.1"
wasmparser = { package = "wasmparser-nostd", version = "0.100.1", default-features = false }
which = "4.4.2"
Expand Down Expand Up @@ -303,11 +302,7 @@ ethexe-validator = { path = "ethexe/validator", default-features = false }
ethexe-rpc = { path = "ethexe/rpc", default-features = false }
ethexe-common = { path = "ethexe/common" }

# Common executors between `sandbox-host` and `calc-stack-height`
sandbox-wasmer = { package = "wasmer", version = "4.3.4", features = [
"singlepass",
] }
sandbox-wasmer-types = { package = "wasmer-types", version = "4.3.4" }
# Common executor between `sandbox-host` and `lazy-pages-fuzzer`
sandbox-wasmi = { package = "wasmi", git = "https://github.com/gear-tech/wasmi", branch = "v0.13.2-sign-ext", features = [
"virtual_memory",
] }
Expand Down Expand Up @@ -542,11 +537,6 @@ num-traits = { version = "0.2", default-features = false } # gear-core
glob = "0.3.1" # cargo-gbuild
smallvec = "1.13.2" # utils/node-wrapper

# TODO: remove after wasmer bug is fixed:
# `misaligned pointer dereference: address must be a multiple of 0x8 but is...`
[profile.dev.package."wasmer-vm"]
debug-assertions = false

[profile.release]
panic = "unwind"

Expand Down
4 changes: 2 additions & 2 deletions gcli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ etc.workspace = true
runtime-primitives.workspace = true
url = { workspace = true, features = ["serde"] }
toml.workspace = true
# TODO: use wasmi from workspace (#3214)
wasmi = { version = "0.30.0", features = ["std"] }
wasmer = { workspace = true, features = ["std"] }
wasmer-types.workspace = true

[dev-dependencies]
rand.workspace = true
Expand Down
Loading

0 comments on commit 8ad1139

Please sign in to comment.