Skip to content

Commit d99f46e

Browse files
committed
Bump wasmtime to 0.39.1
- Bump `wit-bindgen` to a compatible revision - Update docs - Remove unnecessary wasmtime::Config options Signed-off-by: Lann Martin <lann.martin@fermyon.com>
1 parent 1c9cb2e commit d99f46e

File tree

44 files changed

+538
-375
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+538
-375
lines changed

Cargo.lock

Lines changed: 347 additions & 179 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ tracing-subscriber = { version = "0.3.7", features = [ "env-filter" ] }
4848
url = "2.2.2"
4949
uuid = "^1.0"
5050
wasi-outbound-http = { path = "crates/outbound-http" }
51-
wasmtime = "0.35.3"
51+
wasmtime = "0.39.1"
5252

5353
[target.'cfg(target_os = "linux")'.dependencies]
5454
# This needs to be an explicit dependency to enable

crates/config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = [ "Fermyon Engineering <engineering@fermyon.com>" ]
88
anyhow = "1.0"
99
serde = { version = "1.0", features = [ "derive" ] }
1010
thiserror = "1"
11-
wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" }
11+
wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" }
1212

1313
[dev-dependencies]
1414
toml = "0.5"

crates/engine/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ tempfile = "3.3.0"
1515
tokio = { version = "1.10.0", features = [ "fs" ] }
1616
tracing = { version = "0.1", features = [ "log" ] }
1717
tracing-futures = "0.2"
18-
wasi-cap-std-sync = "0.35.3"
19-
wasi-common = "0.35.3"
20-
wasmtime = "0.35.3"
21-
wasmtime-wasi = "0.35.3"
18+
wasi-cap-std-sync = "0.39.1"
19+
wasi-common = "0.39.1"
20+
wasmtime = "0.39.1"
21+
wasmtime-wasi = "0.39.1"
2222
cap-std = "0.24.1"
2323

2424
[dev-dependencies]
25-
wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" }
25+
wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" }

crates/engine/src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,7 @@ pub struct Engine(wasmtime::Engine);
5959

6060
impl Engine {
6161
/// Create a new engine and initialize it with the given config.
62-
pub fn new(mut config: wasmtime::Config) -> Result<Self> {
63-
// In order for Wasmtime to run WebAssembly components, multi memory
64-
// and module linking must always be enabled.
65-
// See https://github.com/bytecodealliance/wit-bindgen/blob/main/crates/wasmlink.
66-
config.wasm_multi_memory(true);
67-
config.wasm_module_linking(true);
62+
pub fn new(config: wasmtime::Config) -> Result<Self> {
6863
Ok(Self(wasmtime::Engine::new(&config)?))
6964
}
7065

crates/http/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ tracing = { version = "0.1", features = ["log"] }
3737
tracing-futures = "0.2"
3838
tracing-subscriber = { version = "0.3.7", features = ["env-filter"] }
3939
url = "2.2"
40-
wasi-cap-std-sync = "0.35.3"
41-
wasi-common = "0.35.3"
42-
wasmtime = "0.35.3"
43-
wasmtime-wasi = "0.35.3"
44-
wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" }
40+
wasi-cap-std-sync = "0.39.1"
41+
wasi-common = "0.39.1"
42+
wasmtime = "0.39.1"
43+
wasmtime-wasi = "0.39.1"
44+
wit-bindgen-wasmtime = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" }
4545

4646
[dev-dependencies]
4747
criterion = { version = "0.3.5", features = ["async_tokio"] }

crates/http/benches/spin-http-benchmark/Cargo.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/http/benches/spin-http-benchmark/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
crate-type = [ "cdylib" ]
88

99
[dependencies]
10-
wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" }
10+
wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" }
1111

1212
[workspace]

crates/http/tests/rust-http-test/Cargo.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/http/tests/rust-http-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
crate-type = [ "cdylib" ]
99

1010
[dependencies]
11-
wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "dde4694aaa6acf9370206527a798ac4ba6a8c5b8" }
11+
wit-bindgen-rust = { git = "https://github.com/bytecodealliance/wit-bindgen", rev = "cb871cfa1ee460b51eb1d144b175b9aab9c50aba" }
1212

1313
[workspace]

0 commit comments

Comments
 (0)