From 737dc2387ffa823e56ffb8a2362d4bdb8e0e40b9 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 18 Oct 2023 12:07:06 -0700 Subject: [PATCH] More test fixes --- crates/test-programs/src/bin/api_proxy.rs | 2 +- .../wasi-preview1-component-adapter/src/descriptors.rs | 2 +- crates/wasi-preview1-component-adapter/src/lib.rs | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/test-programs/src/bin/api_proxy.rs b/crates/test-programs/src/bin/api_proxy.rs index bd9d437c3ea9..b81e8150844f 100644 --- a/crates/test-programs/src/bin/api_proxy.rs +++ b/crates/test-programs/src/bin/api_proxy.rs @@ -3,7 +3,7 @@ pub mod bindings { wit_bindgen::generate!({ path: "../wasi-http/wit", - world: "wasi:http/proxy@0.2.0", + world: "wasi:http/proxy@0.2.0-rc-2023-10-18", exports: { "wasi:http/incoming-handler": T, }, diff --git a/crates/wasi-preview1-component-adapter/src/descriptors.rs b/crates/wasi-preview1-component-adapter/src/descriptors.rs index 928987bfd157..1c0ba4609d31 100644 --- a/crates/wasi-preview1-component-adapter/src/descriptors.rs +++ b/crates/wasi-preview1-component-adapter/src/descriptors.rs @@ -181,7 +181,7 @@ impl Descriptors { })) .trapping_unwrap(); - #[link(wasm_import_module = "wasi:filesystem/preopens@0.2.0")] + #[link(wasm_import_module = "wasi:filesystem/preopens@0.2.0-rc-2023-10-18")] #[allow(improper_ctypes)] // FIXME(bytecodealliance/wit-bindgen#684) extern "C" { #[link_name = "get-directories"] diff --git a/crates/wasi-preview1-component-adapter/src/lib.rs b/crates/wasi-preview1-component-adapter/src/lib.rs index d3dbf769775c..f83dfd2edd11 100644 --- a/crates/wasi-preview1-component-adapter/src/lib.rs +++ b/crates/wasi-preview1-component-adapter/src/lib.rs @@ -30,7 +30,7 @@ pub mod bindings { #[cfg(feature = "command")] wit_bindgen::generate!({ path: "../wasi/wit", - world: "wasi:cli/command@0.2.0", + world: "wasi:cli/command@0.2.0-rc-2023-10-18", std_feature, raw_strings, // Automatically generated bindings for these functions will allocate @@ -58,7 +58,7 @@ pub mod bindings { }); } -#[export_name = "wasi:cli/run@0.2.0#run"] +#[export_name = "wasi:cli/run@0.2.0-rc-2023-10-18#run"] #[cfg(feature = "command")] pub unsafe extern "C" fn run() -> u32 { #[link(wasm_import_module = "__main_module__")] @@ -1774,7 +1774,7 @@ pub unsafe extern "C" fn poll_oneoff( }); } - #[link(wasm_import_module = "wasi:io/poll@0.2.0")] + #[link(wasm_import_module = "wasi:io/poll@0.2.0-rc-2023-10-18")] #[allow(improper_ctypes)] // FIXME(bytecodealliance/wit-bindgen#684) extern "C" { #[link_name = "poll-list"] @@ -2495,7 +2495,7 @@ impl State { fn get_environment(&self) -> &[StrTuple] { if self.env_vars.get().is_none() { - #[link(wasm_import_module = "wasi:cli/environment@0.2.0")] + #[link(wasm_import_module = "wasi:cli/environment@0.2.0-rc-2023-10-18")] extern "C" { #[link_name = "get-environment"] fn get_environment_import(rval: *mut StrTupleList); @@ -2519,7 +2519,7 @@ impl State { fn get_args(&self) -> &[WasmStr] { if self.args.get().is_none() { - #[link(wasm_import_module = "wasi:cli/environment@0.2.0")] + #[link(wasm_import_module = "wasi:cli/environment@0.2.0-rc-2023-10-18")] extern "C" { #[link_name = "get-arguments"] fn get_args_import(rval: *mut WasmStrList);