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
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ jobs:
- name: Install wkg
run: |
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall --no-confirm wkg
cargo binstall --no-confirm wkg@0.13.0
# Re-vendor all WIT files and ensure that they're all up-to-date by ensuring
# that there's no git changes.
- name: Re-vendor WIT
run: |
./ci/vendor-wit.sh
git diff --exit-code
- run: |
version=0.51.0
version=0.53.0

mkdir wit-bindgen
cd wit-bindgen
Expand Down
14 changes: 7 additions & 7 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.51.0. DO NOT EDIT!
// Generated by `wit-bindgen` 0.53.0. DO NOT EDIT!
// Options used:
// * std_feature
// * with "wasi:cli/environment@0.2.9" = "crate::cli::environment"
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.51.0:wasi:cli@0.2.9:command:imports and exportsrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-command-world")]
"component-type:wit-bindgen:0.53.0:wasi:cli@0.2.9: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/insecure@0.2.9\x05*\x01B\x03\x01
o\x02ww\x01@\0\0\0\x04\0\x0dinsecure-seed\x01\x01\x03\0\x1fwasi:random/insecure-\
seed@0.2.9\x05+\x01B\x03\x01j\0\0\x01@\0\0\0\x04\0\x03run\x01\x01\x04\0\x12wasi:\
cli/run@0.2.9\x05,\x04\0\x16wasi:cli/command@0.2.9\x04\0\x0b\x0d\x01\0\x07comman\
d\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.244.0\x10\
wit-bindgen-rust\x060.51.0";
d\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.245.0\x10\
wit-bindgen-rust\x060.53.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.51.0:wasi:cli@0.2.9: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.51.0:wasi:cli@0.2.9: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.53.0:wasi:cli@0.2.9: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:cli@0.2.9: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/insecure@0.2.9\x05*\x01B\x03\x01
o\x02ww\x01@\0\0\0\x04\0\x0dinsecure-seed\x01\x01\x03\0\x1fwasi:random/insecure-\
seed@0.2.9\x05+\x04\06wasi:cli/command-with-all-of-its-exports-removed@0.2.9\x04\
\0\x0b-\x01\0'command-with-all-of-its-exports-removed\x03\0\0\0G\x09producers\x01\
\x0cprocessed-by\x02\x0dwit-component\x070.244.0\x10wit-bindgen-rust\x060.51.0";
\x0cprocessed-by\x02\x0dwit-component\x070.245.0\x10wit-bindgen-rust\x060.53.0";
#[inline(never)]
#[doc(hidden)]
pub fn __link_custom_section_describing_imports() {
Expand Down
10 changes: 5 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.51.0. DO NOT EDIT!
// Generated by `wit-bindgen` 0.53.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 @@ -9995,8 +9995,8 @@ mod _rt {
#[rustfmt::skip]
#[cfg(target_arch = "wasm32")]

#[cfg_attr(feature = "rustc-dep-of-std", unsafe(link_section = "component-type:wit-bindgen:0.51.0:wasi:cli@0.2.9: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.51.0:wasi:cli@0.2.9: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.53.0:wasi:cli@0.2.9: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:cli@0.2.9: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 +10216,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/insecure@0.2.9\x05*\x01B\x03\x01\
o\x02ww\x01@\0\0\0\x04\0\x0dinsecure-seed\x01\x01\x03\0\x1fwasi:random/insecure-\
seed@0.2.9\x05+\x04\0\x16wasi:cli/imports@0.2.9\x04\0\x0b\x0d\x01\0\x07imports\x03\
\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.244.0\x10wit-\
bindgen-rust\x060.51.0";
\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.245.0\x10wit-\
bindgen-rust\x060.53.0";
#[inline(never)]
#[doc(hidden)]
pub fn __link_custom_section_describing_imports() {
Expand Down
12 changes: 6 additions & 6 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.51.0. DO NOT EDIT!
// Generated by `wit-bindgen` 0.53.0. DO NOT EDIT!
// Options used:
// * std_feature
// * with "wasi:cli/stdin@0.2.9" = "crate::cli::stdin"
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.51.0:wasi:http@0.2.9:proxy:imports and exportsrust-wasip2-1.0.2+wasi-0.2.9-from-crates-io-proxy-world")]
"component-type:wit-bindgen:0.53.0:wasi:http@0.2.9: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/incoming-handler@0.2.9\x05\x16\x04\0\x15\
wasi:http/proxy@0.2.9\x04\0\x0b\x0b\x01\0\x05proxy\x03\0\0\0G\x09producers\x01\x0c\
processed-by\x02\x0dwit-component\x070.244.0\x10wit-bindgen-rust\x060.51.0";
processed-by\x02\x0dwit-component\x070.245.0\x10wit-bindgen-rust\x060.53.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.51.0:wasi:http@0.2.9: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.51.0:wasi:http@0.2.9: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.53.0:wasi:http@0.2.9: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:http@0.2.9: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/outgoing-handler@0.2.9\x05\x13\x04\05wasi:http\
/proxy-with-all-of-its-exports-removed@0.2.9\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.244.0\x10wit-bindgen-rust\x060.51.0";
nent\x070.245.0\x10wit-bindgen-rust\x060.53.0";
#[inline(never)]
#[doc(hidden)]
pub fn __link_custom_section_describing_imports() {
Expand Down
10 changes: 5 additions & 5 deletions crates/wasip3/src/command.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by `wit-bindgen` 0.51.0. DO NOT EDIT!
// Generated by `wit-bindgen` 0.53.0. DO NOT EDIT!
// Options used:
// * with "wasi:cli/environment@0.3.0-rc-2026-01-06" = "crate::cli::environment"
// * with "wasi:cli/exit@0.3.0-rc-2026-01-06" = "crate::cli::exit"
Expand Down Expand Up @@ -179,7 +179,7 @@ macro_rules! __export_command_impl {
exports::wasi::cli::run::__export_wasi_cli_run_0_3_0_rc_2026_01_06_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.51.0:wasi:cli@0.3.0-rc-2026-01-06:command:imports and exportsrust-wasip3-0.4.0+wasi-0.3.0-rc-2026-01-06-from-crates-io-command-world")]
"component-type:wit-bindgen:0.53.0:wasi:cli@0.3.0-rc-2026-01-06:command:imports and exportsrust-wasip3-0.4.0+wasi-0.3.0-rc-2026-01-06-from-crates-io-command-world")]
#[doc(hidden)] #[allow(clippy::octal_escapes)] pub static
__WIT_BINDGEN_COMPONENT_TYPE : [u8; 8040] = *
b"\
Expand Down Expand Up @@ -337,7 +337,7 @@ w\0\0\x04\0\x19get-insecure-random-bytes\x01\x01\x01@\0\0w\x04\0\x17get-insecure
cure-seed@0.3.0-rc-2026-01-06\x05\x1b\x01B\x03\x01j\0\0\x01C\0\0\0\x04\0\x03run\x01\
\x01\x04\0\x20wasi:cli/run@0.3.0-rc-2026-01-06\x05\x1c\x04\0$wasi:cli/command@0.\
3.0-rc-2026-01-06\x04\0\x0b\x0d\x01\0\x07command\x03\0\0\0G\x09producers\x01\x0c\
processed-by\x02\x0dwit-component\x070.244.0\x10wit-bindgen-rust\x060.51.0";
processed-by\x02\x0dwit-component\x070.245.0\x10wit-bindgen-rust\x060.53.0";
};
};
}
Expand All @@ -346,7 +346,7 @@ pub use __export_command_impl as _export_command;
#[rustfmt::skip]
#[cfg(target_arch = "wasm32")]
#[unsafe(
link_section = "component-type:wit-bindgen:0.51.0:wasi:cli@0.3.0-rc-2026-01-06:command-with-all-of-its-exports-removed:encoded worldrust-wasip3-0.4.0+wasi-0.3.0-rc-2026-01-06-from-crates-io-command-world"
link_section = "component-type:wit-bindgen:0.53.0:wasi:cli@0.3.0-rc-2026-01-06:command-with-all-of-its-exports-removed:encoded worldrust-wasip3-0.4.0+wasi-0.3.0-rc-2026-01-06-from-crates-io-command-world"
)]
#[doc(hidden)]
#[allow(clippy::octal_escapes)]
Expand Down Expand Up @@ -505,7 +505,7 @@ w\0\0\x04\0\x19get-insecure-random-bytes\x01\x01\x01@\0\0w\x04\0\x17get-insecure
cure-seed@0.3.0-rc-2026-01-06\x05\x1b\x04\0Dwasi:cli/command-with-all-of-its-exp\
orts-removed@0.3.0-rc-2026-01-06\x04\0\x0b-\x01\0'command-with-all-of-its-export\
s-removed\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0dwit-component\x070.\
244.0\x10wit-bindgen-rust\x060.51.0";
245.0\x10wit-bindgen-rust\x060.53.0";
#[inline(never)]
#[doc(hidden)]
pub fn __link_custom_section_describing_imports() {
Expand Down
46 changes: 29 additions & 17 deletions crates/wasip3/src/imports.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated by `wit-bindgen` 0.51.0. DO NOT EDIT!
// Generated by `wit-bindgen` 0.53.0. DO NOT EDIT!
// Options used:
// * type_section_suffix: "rust-wasip3-0.4.0+wasi-0.3.0-rc-2026-01-06-from-crates-io"
#[rustfmt::skip]
Expand Down Expand Up @@ -348,11 +348,14 @@ pub mod wasi {
let result4 = (
wit_bindgen::rt::async_support::StreamReader::new(
l2 as u32,
&super::super::super::wit_stream::vtable0::VTABLE,
&<u8 as super::super::super::wit_stream::StreamPayload>::VTABLE,
),
wit_bindgen::rt::async_support::FutureReader::new(
l3 as u32,
&super::super::super::wit_future::vtable0::VTABLE,
&<Result<
(),
ErrorCode,
> as super::super::super::wit_future::FuturePayload>::VTABLE,
),
);
result4
Expand Down Expand Up @@ -434,7 +437,7 @@ pub mod wasi {
unsafe {
let _ = wit_bindgen::rt::async_support::StreamReader::new(
_params.0 as u32,
&super::super::super::wit_stream::vtable0::VTABLE,
&<u8 as super::super::super::wit_stream::StreamPayload>::VTABLE,
);
}
}
Expand Down Expand Up @@ -553,7 +556,7 @@ pub mod wasi {
unsafe {
let _ = wit_bindgen::rt::async_support::StreamReader::new(
_params.0 as u32,
&super::super::super::wit_stream::vtable0::VTABLE,
&<u8 as super::super::super::wit_stream::StreamPayload>::VTABLE,
);
}
}
Expand Down Expand Up @@ -1934,11 +1937,14 @@ pub mod wasi {
let result4 = (
wit_bindgen::rt::async_support::StreamReader::new(
l2 as u32,
&super::super::super::wit_stream::vtable0::VTABLE,
&<u8 as super::super::super::wit_stream::StreamPayload>::VTABLE,
),
wit_bindgen::rt::async_support::FutureReader::new(
l3 as u32,
&super::super::super::wit_future::vtable1::VTABLE,
&<Result<
(),
ErrorCode,
> as super::super::super::wit_future::FuturePayload>::VTABLE,
),
);
result4
Expand Down Expand Up @@ -2029,7 +2035,7 @@ pub mod wasi {
unsafe {
let _ = wit_bindgen::rt::async_support::StreamReader::new(
_params.1 as u32,
&super::super::super::wit_stream::vtable0::VTABLE,
&<u8 as super::super::super::wit_stream::StreamPayload>::VTABLE,
);
}
}
Expand Down Expand Up @@ -2152,7 +2158,7 @@ pub mod wasi {
unsafe {
let _ = wit_bindgen::rt::async_support::StreamReader::new(
_params.1 as u32,
&super::super::super::wit_stream::vtable0::VTABLE,
&<u8 as super::super::super::wit_stream::StreamPayload>::VTABLE,
);
}
}
Expand Down Expand Up @@ -2985,11 +2991,14 @@ pub mod wasi {
(
wit_bindgen::rt::async_support::StreamReader::new(
l0 as u32,
&super::super::super::wit_stream::vtable1::VTABLE,
&<DirectoryEntry as super::super::super::wit_stream::StreamPayload>::VTABLE,
),
wit_bindgen::rt::async_support::FutureReader::new(
l1 as u32,
&super::super::super::wit_future::vtable1::VTABLE,
&<Result<
(),
ErrorCode,
> as super::super::super::wit_future::FuturePayload>::VTABLE,
),
)
}
Expand Down Expand Up @@ -6482,7 +6491,7 @@ pub mod wasi {
let l3 = *ptr0.add(4).cast::<i32>();
wit_bindgen::rt::async_support::StreamReader::new(
l3 as u32,
&super::super::super::wit_stream::vtable2::VTABLE,
&<TcpSocket as super::super::super::wit_stream::StreamPayload>::VTABLE,
)
};
Ok(e)
Expand Down Expand Up @@ -6587,7 +6596,7 @@ pub mod wasi {
unsafe {
let _ = wit_bindgen::rt::async_support::StreamReader::new(
_params.1 as u32,
&super::super::super::wit_stream::vtable0::VTABLE,
&<u8 as super::super::super::wit_stream::StreamPayload>::VTABLE,
);
}
}
Expand Down Expand Up @@ -6699,11 +6708,14 @@ pub mod wasi {
let result4 = (
wit_bindgen::rt::async_support::StreamReader::new(
l2 as u32,
&super::super::super::wit_stream::vtable0::VTABLE,
&<u8 as super::super::super::wit_stream::StreamPayload>::VTABLE,
),
wit_bindgen::rt::async_support::FutureReader::new(
l3 as u32,
&super::super::super::wit_future::vtable2::VTABLE,
&<Result<
(),
ErrorCode,
> as super::super::super::wit_future::FuturePayload>::VTABLE,
),
);
result4
Expand Down Expand Up @@ -10377,7 +10389,7 @@ pub mod wit_stream {
#[rustfmt::skip]
#[cfg(target_arch = "wasm32")]
#[unsafe(
link_section = "component-type:wit-bindgen:0.51.0:wasi:cli@0.3.0-rc-2026-01-06:imports:encoded worldrust-wasip3-0.4.0+wasi-0.3.0-rc-2026-01-06-from-crates-io"
link_section = "component-type:wit-bindgen:0.53.0:wasi:cli@0.3.0-rc-2026-01-06:imports:encoded worldrust-wasip3-0.4.0+wasi-0.3.0-rc-2026-01-06-from-crates-io"
)]
#[doc(hidden)]
#[allow(clippy::octal_escapes)]
Expand Down Expand Up @@ -10535,7 +10547,7 @@ w\0\0\x04\0\x19get-insecure-random-bytes\x01\x01\x01@\0\0w\x04\0\x17get-insecure
\x01o\x02ww\x01@\0\0\0\x04\0\x11get-insecure-seed\x01\x01\x03\0-wasi:random/inse\
cure-seed@0.3.0-rc-2026-01-06\x05\x1b\x04\0$wasi:cli/imports@0.3.0-rc-2026-01-06\
\x04\0\x0b\x0d\x01\0\x07imports\x03\0\0\0G\x09producers\x01\x0cprocessed-by\x02\x0d\
wit-component\x070.244.0\x10wit-bindgen-rust\x060.51.0";
wit-component\x070.245.0\x10wit-bindgen-rust\x060.53.0";
#[inline(never)]
#[doc(hidden)]
pub fn __link_custom_section_describing_imports() {
Expand Down
Loading