Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
./ci/vendor-wit.sh
git diff --exit-code
- run: |
version=0.53.0
version=0.54.0

mkdir wit-bindgen
cd wit-bindgen
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ rust-version = "1.87.0"
[workspace.dependencies]
rand = { version = "0.8.5", default-features = false }
wasi = { version = "0.14.6", path = ".", default-features = false }
wit-bindgen = { version = "0.51.0", default-features = false }
wit-bindgen = { version = "0.54.0", default-features = false }
wasip1 = { version = "1.0.0", path = "crates/wasip1", default-features = false }
wasip2 = { version = "1.0.1", path = "crates/wasip2", default-features = false }
wasip3 = { version = "0.1.1", path = "crates/wasip3", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion ci/regenerate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ generate_p2 crates/wasip2/src/imports.rs \
--world wasi:cli/imports

p2=0.2.9
p3=0.3.0-rc-2026-02-09
p3=0.3.0-rc-2026-03-15

# Generate bindings for the `wasi:cli/command` world specifically, namely the
# macro `export_command`.
Expand Down
2 changes: 1 addition & 1 deletion ci/vendor-wit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ wkg get --overwrite --format wit "wasi:sockets@${p2}" -o crates/wasip2/wit/deps/
rm -rf crates/wasip3/wit/deps
mkdir -p crates/wasip3/wit/deps

p3=0.3.0-rc-2026-02-09
p3=0.3.0-rc-2026-03-15
wkg get --overwrite --format wit "wasi:cli@${p3}" -o crates/wasip3/wit/deps/cli.wit
wkg get --overwrite --format wit "wasi:clocks@${p3}" -o crates/wasip3/wit/deps/clocks.wit
wkg get --overwrite --format wit "wasi:filesystem@${p3}" -o crates/wasip3/wit/deps/filesystem.wit
Expand Down
18 changes: 9 additions & 9 deletions crates/wasip2/src/command.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by `wit-bindgen` 0.53.0. DO NOT EDIT!
// Generated by `wit-bindgen` 0.54.0. DO NOT EDIT!
// Options used:
// * std_feature
// * with "wasi:cli/[email protected]" = "crate::cli::environment"
Expand Down Expand Up @@ -99,10 +99,10 @@ pub mod exports {
use super::super::super::super::_rt;
#[doc(hidden)]
#[allow(non_snake_case, unused_unsafe)]
pub unsafe fn _export_run_cabi<T: Guest>() -> i32 {
pub unsafe fn _export_run_cabi<T_: Guest>() -> i32 {
unsafe {
#[cfg(target_arch = "wasm32")] _rt::run_ctors_once();
let result0 = { T::run() };
let result0 = { T_::run() };
let result1 = match result0 {
Ok(_) => 0i32,
Err(_) => 1i32,
Expand Down Expand Up @@ -167,7 +167,7 @@ macro_rules! __export_command_impl {
exports::wasi::cli::run::__export_wasi_cli_run_0_2_9_cabi!($ty with_types_in
$($path_to_types_root)*:: exports::wasi::cli::run); const _ : () = {
#[rustfmt::skip] #[cfg(target_arch = "wasm32")] #[unsafe (link_section =
"component-type:wit-bindgen:0.53.0:wasi:[email protected]:command:imports and exportsrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-command-world")]
"component-type:wit-bindgen:0.54.0:wasi:[email protected]:command:imports and exportsrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-command-world")]
#[doc(hidden)] #[allow(clippy::octal_escapes)] pub static
__WIT_BINDGEN_COMPONENT_TYPE : [u8; 10773] = *
b"\
Expand Down Expand Up @@ -387,8 +387,8 @@ nsecure-random-u64\x01\x02\x03\0\x1awasi:random/[email protected]\x05*\x01B\x03\x01
o\x02ww\x01@\0\0\0\x04\0\x0dinsecure-seed\x01\x01\x03\0\x1fwasi:random/insecure-\
[email protected]\x05+\x01B\x03\x01j\0\0\x01@\0\0\0\x04\0\x03run\x01\x01\x04\0\x12wasi:\
cli/[email protected]\x05,\x04\0\x16wasi:cli/[email protected]\x04\0\x0b\x0d\x01\0\x07comman\
d\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.245.0\x10\
wit-bindgen-rust\x060.53.0";
d\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.245.1\x10\
wit-bindgen-rust\x060.54.0";
};
};
}
Expand All @@ -397,8 +397,8 @@ pub use __export_command_impl as _export_command;
#[rustfmt::skip]
#[cfg(target_arch = "wasm32")]

#[cfg_attr(feature = "rustc-dep-of-std", unsafe(link_section = "component-type:wit-bindgen:0.53.0:wasi:[email protected]:command-with-all-of-its-exports-removed:encoded worldrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-command-world-in-libstd"))]
#[cfg_attr(not(feature = "rustc-dep-of-std"), unsafe(link_section = "component-type:wit-bindgen:0.53.0:wasi:[email protected]:command-with-all-of-its-exports-removed:encoded worldrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-command-world"))]
#[cfg_attr(feature = "rustc-dep-of-std", unsafe(link_section = "component-type:wit-bindgen:0.54.0:wasi:[email protected]:command-with-all-of-its-exports-removed:encoded worldrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-command-world-in-libstd"))]
#[cfg_attr(not(feature = "rustc-dep-of-std"), unsafe(link_section = "component-type:wit-bindgen:0.54.0:wasi:[email protected]:command-with-all-of-its-exports-removed:encoded worldrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-command-world"))]

#[doc(hidden)]
#[allow(clippy::octal_escapes)]
Expand Down Expand Up @@ -619,7 +619,7 @@ nsecure-random-u64\x01\x02\x03\0\x1awasi:random/[email protected]\x05*\x01B\x03\x01
o\x02ww\x01@\0\0\0\x04\0\x0dinsecure-seed\x01\x01\x03\0\x1fwasi:random/insecure-\
[email protected]\x05+\x04\06wasi:cli/[email protected]\x04\
\0\x0b-\x01\0'command-with-all-of-its-exports-removed\x03\0\0\0G\x09producers\x01\
\x0cprocessed-by\x02\x0dwit-component\x070.245.0\x10wit-bindgen-rust\x060.53.0";
\x0cprocessed-by\x02\x0dwit-component\x070.245.1\x10wit-bindgen-rust\x060.54.0";
#[inline(never)]
#[doc(hidden)]
pub fn __link_custom_section_describing_imports() {
Expand Down
12 changes: 7 additions & 5 deletions crates/wasip2/src/imports.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by `wit-bindgen` 0.53.0. DO NOT EDIT!
// Generated by `wit-bindgen` 0.54.0. DO NOT EDIT!
// Options used:
// * std_feature
// * type_section_suffix: "rust-wasip2-1.0.2+wasi-0.2.9-from-crates-io"
Expand Down Expand Up @@ -7460,6 +7460,7 @@ pub mod wasi {
#[doc(hidden)]
static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports;
use super::super::super::_rt;
pub type Network = super::super::super::wasi::sockets::network::Network;
pub type ErrorCode = super::super::super::wasi::sockets::network::ErrorCode;
pub type IpAddressFamily = super::super::super::wasi::sockets::network::IpAddressFamily;
pub type UdpSocket = super::super::super::wasi::sockets::udp::UdpSocket;
Expand Down Expand Up @@ -9465,6 +9466,7 @@ pub mod wasi {
#[doc(hidden)]
static __FORCE_SECTION_REF: fn() = super::super::super::__link_custom_section_describing_imports;
use super::super::super::_rt;
pub type Network = super::super::super::wasi::sockets::network::Network;
pub type ErrorCode = super::super::super::wasi::sockets::network::ErrorCode;
pub type IpAddressFamily = super::super::super::wasi::sockets::network::IpAddressFamily;
pub type TcpSocket = super::super::super::wasi::sockets::tcp::TcpSocket;
Expand Down Expand Up @@ -9995,8 +9997,8 @@ mod _rt {
#[rustfmt::skip]
#[cfg(target_arch = "wasm32")]

#[cfg_attr(feature = "rustc-dep-of-std", unsafe(link_section = "component-type:wit-bindgen:0.53.0:wasi:[email protected]:imports:encoded worldrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-in-libstd"))]
#[cfg_attr(not(feature = "rustc-dep-of-std"), unsafe(link_section = "component-type:wit-bindgen:0.53.0:wasi:[email protected]:imports:encoded worldrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io"))]
#[cfg_attr(feature = "rustc-dep-of-std", unsafe(link_section = "component-type:wit-bindgen:0.54.0:wasi:[email protected]:imports:encoded worldrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-in-libstd"))]
#[cfg_attr(not(feature = "rustc-dep-of-std"), unsafe(link_section = "component-type:wit-bindgen:0.54.0:wasi:[email protected]:imports:encoded worldrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io"))]

#[doc(hidden)]
#[allow(clippy::octal_escapes)]
Expand Down Expand Up @@ -10216,8 +10218,8 @@ p}\x01@\x01\x03lenw\0\0\x04\0\x10get-random-bytes\x01\x01\x01@\0\0w\x04\0\x0eget
nsecure-random-u64\x01\x02\x03\0\x1awasi:random/[email protected]\x05*\x01B\x03\x01\
o\x02ww\x01@\0\0\0\x04\0\x0dinsecure-seed\x01\x01\x03\0\x1fwasi:random/insecure-\
[email protected]\x05+\x04\0\x16wasi:cli/[email protected]\x04\0\x0b\x0d\x01\0\x07imports\x03\
\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.245.0\x10wit-\
bindgen-rust\x060.53.0";
\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.245.1\x10wit-\
bindgen-rust\x060.54.0";
#[inline(never)]
#[doc(hidden)]
pub fn __link_custom_section_describing_imports() {
Expand Down
16 changes: 8 additions & 8 deletions crates/wasip2/src/proxy.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by `wit-bindgen` 0.53.0. DO NOT EDIT!
// Generated by `wit-bindgen` 0.54.0. DO NOT EDIT!
// Options used:
// * std_feature
// * with "wasi:cli/[email protected]" = "crate::cli::stdin"
Expand Down Expand Up @@ -6867,11 +6867,11 @@ pub mod exports {
pub type ResponseOutparam = super::super::super::super::wasi::http::types::ResponseOutparam;
#[doc(hidden)]
#[allow(non_snake_case, unused_unsafe)]
pub unsafe fn _export_handle_cabi<T: Guest>(arg0: i32, arg1: i32) {
pub unsafe fn _export_handle_cabi<T_: Guest>(arg0: i32, arg1: i32) {
unsafe {
#[cfg(target_arch = "wasm32")] _rt::run_ctors_once();
{
T::handle(
T_::handle(
super::super::super::super::wasi::http::types::IncomingRequest::from_handle(
arg0 as u32,
),
Expand Down Expand Up @@ -7147,7 +7147,7 @@ macro_rules! __export_proxy_impl {
with_types_in $($path_to_types_root)*:: exports::wasi::http::incoming_handler);
const _ : () = { #[rustfmt::skip] #[cfg(target_arch = "wasm32")] #[unsafe
(link_section =
"component-type:wit-bindgen:0.53.0:wasi:[email protected]:proxy:imports and exportsrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-proxy-world")]
"component-type:wit-bindgen:0.54.0:wasi:[email protected]:proxy:imports and exportsrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-proxy-world")]
#[doc(hidden)] #[allow(clippy::octal_escapes)] pub static
__WIT_BINDGEN_COMPONENT_TYPE : [u8; 7040] = *
b"\
Expand Down Expand Up @@ -7291,7 +7291,7 @@ incoming-request\x02\x03\0\x09\x11response-outparam\x01B\x08\x02\x03\x02\x01\x14
m\x03\0\x02\x01i\x01\x01i\x03\x01@\x02\x07request\x04\x0cresponse-out\x05\x01\0\x04\
\0\x06handle\x01\x06\x04\0\x20wasi:http/[email protected]\x05\x16\x04\0\x15\
wasi:http/[email protected]\x04\0\x0b\x0b\x01\0\x05proxy\x03\0\0\0G\x09producers\x01\x0c\
processed-by\x02\x0dwit-component\x070.245.0\x10wit-bindgen-rust\x060.53.0";
processed-by\x02\x0dwit-component\x070.245.1\x10wit-bindgen-rust\x060.54.0";
};
};
}
Expand All @@ -7300,8 +7300,8 @@ pub use __export_proxy_impl as _export_proxy;
#[rustfmt::skip]
#[cfg(target_arch = "wasm32")]

#[cfg_attr(feature = "rustc-dep-of-std", unsafe(link_section = "component-type:wit-bindgen:0.53.0:wasi:[email protected]:proxy-with-all-of-its-exports-removed:encoded worldrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-proxy-world-in-libstd"))]
#[cfg_attr(not(feature = "rustc-dep-of-std"), unsafe(link_section = "component-type:wit-bindgen:0.53.0:wasi:[email protected]:proxy-with-all-of-its-exports-removed:encoded worldrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-proxy-world"))]
#[cfg_attr(feature = "rustc-dep-of-std", unsafe(link_section = "component-type:wit-bindgen:0.54.0:wasi:[email protected]:proxy-with-all-of-its-exports-removed:encoded worldrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-proxy-world-in-libstd"))]
#[cfg_attr(not(feature = "rustc-dep-of-std"), unsafe(link_section = "component-type:wit-bindgen:0.54.0:wasi:[email protected]:proxy-with-all-of-its-exports-removed:encoded worldrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-proxy-world"))]

#[doc(hidden)]
#[allow(clippy::octal_escapes)]
Expand Down Expand Up @@ -7443,7 +7443,7 @@ i\x05\x01j\x01\x0b\x01\x07\x01@\x02\x07request\x08\x07options\x0a\0\x0c\x04\0\x0
handle\x01\x0d\x03\0\x20wasi:http/[email protected]\x05\x13\x04\05wasi:http\
/[email protected]\x04\0\x0b+\x01\0%proxy-with-all-of-\
its-exports-removed\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-compo\
nent\x070.245.0\x10wit-bindgen-rust\x060.53.0";
nent\x070.245.1\x10wit-bindgen-rust\x060.54.0";
#[inline(never)]
#[doc(hidden)]
pub fn __link_custom_section_describing_imports() {
Expand Down
2 changes: 1 addition & 1 deletion crates/wasip3/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wasip3"
version = "0.5.0+wasi-0.3.0-rc-2026-02-09"
version = "0.5.0+wasi-0.3.0-rc-2026-03-15"
description = "WASIp3 API bindings for Rust"
categories = ["no-std", "wasm"]
keywords = ["webassembly", "wasm"]
Expand Down
Loading
Loading