Skip to content

Commit 1047b51

Browse files
authored
Update wit-bindgen to 0.45.0 (#11609)
* Update wit-bindgen to 0.45.0 Pulling in recent changes * Add vets * Remove dead imports
1 parent 62360e3 commit 1047b51

22 files changed

+94
-175
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,8 @@ io-lifetimes = { version = "2.0.3", default-features = false }
325325
io-extras = "0.18.1"
326326
rustix = "1.0.3"
327327
# wit-bindgen:
328-
wit-bindgen = { version = "0.43.0", default-features = false }
329-
wit-bindgen-rt = { version = "0.43.0", default-features = false }
330-
wit-bindgen-rust-macro = { version = "0.43.0", default-features = false }
328+
wit-bindgen = { version = "0.45.0", default-features = false }
329+
wit-bindgen-rust-macro = { version = "0.45.0", default-features = false }
331330

332331
# wasm-tools family:
333332
wasmparser = { version = "0.238.1", default-features = false, features = ['simd'] }

crates/test-programs/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ workspace = true
1414
anyhow = { workspace = true, features = ['std'] }
1515
wasi-nn = "0.6.0"
1616
wit-bindgen = { workspace = true, features = ['default'] }
17-
wit-bindgen-rt = { workspace = true, features = ['async'] }
1817
libc = { workspace = true }
1918
futures = { workspace = true, default-features = false, features = ['alloc'] }
2019
url = { workspace = true }

crates/test-programs/src/bin/async_backpressure_callee.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ mod bindings {
88
export!(Component);
99
}
1010

11-
use {
12-
bindings::exports::local::local::{backpressure::Guest as Backpressure, run::Guest as Run},
13-
wit_bindgen_rt::async_support,
14-
};
11+
use bindings::exports::local::local::{backpressure::Guest as Backpressure, run::Guest as Run};
1512

1613
struct Component;
1714

@@ -23,7 +20,7 @@ impl Run for Component {
2320

2421
impl Backpressure for Component {
2522
fn set_backpressure(enabled: bool) {
26-
async_support::backpressure_set(enabled);
23+
wit_bindgen::backpressure_set(enabled);
2724
}
2825
}
2926

crates/test-programs/src/bin/async_borrowing_callee.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,17 @@ mod bindings {
88
export!(Component);
99
}
1010

11-
use {
12-
bindings::{
13-
exports::local::local::{borrowing::Guest as Borrowing, run_bool::Guest as RunBool},
14-
local::local::borrowing_types::X,
15-
},
16-
wit_bindgen_rt::async_support,
11+
use bindings::{
12+
exports::local::local::{borrowing::Guest as Borrowing, run_bool::Guest as RunBool},
13+
local::local::borrowing_types::X,
1714
};
1815

1916
struct Component;
2017

2118
impl Borrowing for Component {
2219
async fn foo(x: &X, misbehave: bool) {
2320
let handle = x.handle();
24-
async_support::spawn(async move {
21+
wit_bindgen::spawn(async move {
2522
if misbehave {
2623
unsafe { X::from_handle(handle) }.foo();
2724
}

0 commit comments

Comments
 (0)