Skip to content

Commit ad3c5cc

Browse files
Re-export spawn from wit-bindgen (#150)
Signed-off-by: Brian Hardock <brian.hardock@fermyon.com>
1 parent 277c0a6 commit ad3c5cc

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

crates/wasip3/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ rust-version.workspace = true
1515
all-features = true
1616

1717
[features]
18+
async-spawn = ["wit-bindgen/async-spawn"]
1819
http-compat = [
1920
"dep:bytes",
2021
"dep:http-body",
2122
"dep:http",
2223
"dep:thiserror",
23-
"wit-bindgen/async-spawn",
24+
"async-spawn",
2425
]
2526

2627
[dependencies]

crates/wasip3/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ where
176176
// Reexport wit-bindgen to downstream users don't have to depend on it.
177177
pub use wit_bindgen;
178178

179+
#[cfg(feature = "async-spawn")]
180+
pub use wit_bindgen::spawn;
181+
179182
// Expand the `cli` and `http` modules with `export!` macros for the
180183
// command/proxy worlds, but also retain all the contents defined in the
181184
// `bindings` module as well.

0 commit comments

Comments
 (0)