Skip to content

Commit 44af919

Browse files
authored
Update to wit-bindgen 0.23. (#84)
* Update to wit-bindgen 0.23. - wit-bindgen-rt now provides a bitflags export, so we don't need to separately depend on bitflags. - Remove the Cargo.toml `[badges]` section, which is no longer displayed on crates.io. * Update wit-bindgen, wasmtime, and wasm-tools in CI. * Remove the explicit bitflags path from the wit-bindgen CLI invocation. * Update the adapter version in CI too.
1 parent f0111eb commit 44af919

File tree

6 files changed

+89
-60
lines changed

6 files changed

+89
-60
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
- name: Install Wasmtime
2222
uses: bytecodealliance/actions/wasmtime/setup@v1
2323
with:
24-
version: "v17.0.0"
24+
version: "v19.0.0"
2525
- name: Install wasm-tools
2626
uses: bytecodealliance/actions/wasm-tools/setup@v1
2727
with:
28-
version: "1.0.57"
28+
version: "1.202.0"
2929
- run: cargo build --examples --target wasm32-wasi
30-
- run: curl -LO https://github.com/bytecodealliance/wasmtime/releases/download/v17.0.0/wasi_snapshot_preview1.command.wasm
30+
- run: curl -LO https://github.com/bytecodealliance/wasmtime/releases/download/v19.0.0/wasi_snapshot_preview1.command.wasm
3131
- run: wasm-tools component new ./target/wasm32-wasi/debug/examples/hello-world.wasm --adapt ./wasi_snapshot_preview1.command.wasm -o component.wasm
3232
- run: wasmtime run component.wasm
3333
- run: cargo build --examples --target wasm32-unknown-unknown
@@ -53,6 +53,6 @@ jobs:
5353
- uses: actions/checkout@v4
5454
- name: Install Rust
5555
run: rustup update stable && rustup default stable
56-
- run: cargo install wit-bindgen-cli@0.21.0 --locked
56+
- run: cargo install wit-bindgen-cli@0.23.0 --locked
5757
- run: ./ci/regenerate.sh
5858
- run: git diff --exit-code

Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ readme = "README.md"
1212
documentation = "https://docs.rs/wasi"
1313

1414
[dependencies]
15-
wit-bindgen-rt = "0.21.0"
16-
bitflags = "2.4.2"
15+
wit-bindgen-rt = { version = "0.23.0", features = ["bitflags"] }
1716

1817
# When built as part of libstd
1918
compiler_builtins = { version = "0.1", optional = true }
@@ -33,6 +32,3 @@ crate-type = ["cdylib"]
3332
[[example]]
3433
name = "http-proxy"
3534
crate-type = ["cdylib"]
36-
37-
[badges]
38-
maintenance = { status = "experimental" }

ci/regenerate.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ generate() {
66
file="$1"
77
shift
88
wit-bindgen rust wit --out-dir src --std-feature "$@" --rustfmt \
9-
--bitflags-path bitflags \
109
--runtime-path wit_bindgen_rt
1110
}
1211

src/bindings.rs

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

0 commit comments

Comments
 (0)