Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit bf85653

Browse files
authored
Merge pull request #223 from bytecodealliance/dicej/unify-fiber-abstractions
combine fiber abstractions from `async_.rs` and `concurrent.rs`
2 parents 336c85c + f049bef commit bf85653

19 files changed

Lines changed: 841 additions & 1359 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ cranelift/isle/veri/veri_engine/test_output
2828
crates/explorer/node_modules
2929
tests/all/pulley_provenance_test.cwasm
3030
tests/all/pulley_provenance_test_component.cwasm
31+
tests/all/pulley_provenance_test_async_component.cwasm
3132
/artifacts
3233
testcase*.wat
3334
testcase*.wasm

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -632,12 +632,9 @@ lto = true
632632
# wasm-wave = { git = "https://github.com/bytecodealliance/wasm-tools" }
633633
# wasm-compose = { git = "https://github.com/bytecodealliance/wasm-tools" }
634634
# wasm-metadata = { git = "https://github.com/bytecodealliance/wasm-tools" }
635-
# wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen" }
636-
# wit-bindgen-rt = { git = "https://github.com/bytecodealliance/wit-bindgen" }
637-
# wit-bindgen-rust-macro = { git = "https://github.com/bytecodealliance/wit-bindgen" }
638-
wit-bindgen = { git = "https://github.com/dicej/wit-bindgen", branch = "no-reads-writes-after-dropped" }
639-
wit-bindgen-rt = { git = "https://github.com/dicej/wit-bindgen", branch = "no-reads-writes-after-dropped" }
640-
wit-bindgen-rust-macro = { git = "https://github.com/dicej/wit-bindgen", branch = "no-reads-writes-after-dropped" }
635+
wit-bindgen = { git = "https://github.com/bytecodealliance/wit-bindgen" }
636+
wit-bindgen-rt = { git = "https://github.com/bytecodealliance/wit-bindgen" }
637+
wit-bindgen-rust-macro = { git = "https://github.com/bytecodealliance/wit-bindgen" }
641638

642639
# wasmparser = { path = '../wasm-tools/crates/wasmparser' }
643640
# wat = { path = '../wasm-tools/crates/wat' }

crates/wasmtime/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ semver = { workspace = true, optional = true }
6161
smallvec = { workspace = true, optional = true }
6262
hashbrown = { workspace = true, features = ["default-hasher"] }
6363
bitflags = { workspace = true }
64-
futures = { workspace = true, features = ["alloc"], optional = true }
64+
futures = { workspace = true, default_features = false, features = ["alloc"], optional = true }
6565
bytes = { workspace = true, optional = true }
6666

6767
[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
@@ -195,6 +195,7 @@ async = [
195195
"dep:wasmtime-fiber",
196196
"dep:async-trait",
197197
"dep:trait-variant",
198+
"dep:futures",
198199
"wasmtime-component-macro?/async",
199200
"runtime",
200201
]

crates/wasmtime/src/runtime.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ pub(crate) mod code_memory;
3434
#[cfg(feature = "debug-builtins")]
3535
pub(crate) mod debug;
3636
pub(crate) mod externals;
37+
#[cfg(feature = "async")]
38+
pub(crate) mod fiber;
3739
pub(crate) mod gc;
3840
pub(crate) mod instance;
3941
pub(crate) mod instantiate;

0 commit comments

Comments
 (0)