Skip to content

Commit

Permalink
[rust] migrate wasmer to wasmtime
Browse files Browse the repository at this point in the history
Due to wasmer4 lack flexibility of feature selection and test migration
difficulties, we decided to migrate wasmer to wasmtime crate.
  • Loading branch information
hkrn committed Sep 18, 2023
1 parent 9b255af commit 01068b6
Show file tree
Hide file tree
Showing 14 changed files with 1,395 additions and 1,857 deletions.
2,313 changes: 851 additions & 1,462 deletions rust/Cargo.lock

Large diffs are not rendered by default.

10 changes: 1 addition & 9 deletions rust/deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ vulnerability = "deny"
unmaintained = "warn"
yanked = "warn"
notice = "warn"
ignore = [
"RUSTSEC-2020-0056", # unmaintained stdweb issue
"RUSTSEC-2020-0163", # unmaintained term_size issue
"RUSTSEC-2020-0168", # unmaintained mach issue
"RUSTSEC-2021-0127", # unmaintained serde_cbor issue
]
ignore = ["RUSTSEC-2020-0168"]

[licenses]
unlicensed = "deny"
Expand All @@ -20,9 +15,6 @@ allow = [
"Apache-2.0 WITH LLVM-exception",
"BSD-3-Clause",
"BSD-2-Clause",
"BUSL-1.1",
"CC0-1.0",
"ISC",
"MIT",
"MPL-2.0",
"Unicode-DFS-2016",
Expand Down
14 changes: 7 additions & 7 deletions rust/plugin_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@ anyhow = "1"
nanoem-protobuf = { version = "35", path = "../protobuf" }
tracing = { version = "0.1", default-features = false, features = ["std"] }
tracing-subscriber = "0.3"
wasmer = { version = "3.3", default-features = false, features = [
"sys",
wasmtime = { version = "12", default-features = false, features = [
"cranelift",
"pooling-allocator",
] }
wasmer-wasix = { version = "0.4", default-features = false, features = [
"sys",
"sys-poll",
"sys-thread",
] }
wasmtime-wasi = { version = "12" }
walkdir = "2"
zerocopy = "0.7"

[dev-dependencies]
serde = "1"
Expand All @@ -29,6 +26,9 @@ maplit = "1"
rand = "0.8"
pretty_assertions = "1"
assert_matches = "1"
async-trait = { version = "0.1" }
wasi-common = { version = "12" }
futures = { version = "0.3" }

[lib]
path = "src/lib.rs"
Expand Down
Loading

0 comments on commit 01068b6

Please sign in to comment.