Skip to content

Commit

Permalink
More test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Oct 18, 2023
1 parent ec9d067 commit 737dc23
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/test-programs/src/bin/api_proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pub mod bindings {

wit_bindgen::generate!({
path: "../wasi-http/wit",
world: "wasi:http/[email protected]",
world: "wasi:http/[email protected]-rc-2023-10-18",
exports: {
"wasi:http/incoming-handler": T,
},
Expand Down
2 changes: 1 addition & 1 deletion crates/wasi-preview1-component-adapter/src/descriptors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ impl Descriptors {
}))
.trapping_unwrap();

#[link(wasm_import_module = "wasi:filesystem/[email protected]")]
#[link(wasm_import_module = "wasi:filesystem/[email protected]-rc-2023-10-18")]
#[allow(improper_ctypes)] // FIXME(bytecodealliance/wit-bindgen#684)
extern "C" {
#[link_name = "get-directories"]
Expand Down
10 changes: 5 additions & 5 deletions crates/wasi-preview1-component-adapter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub mod bindings {
#[cfg(feature = "command")]
wit_bindgen::generate!({
path: "../wasi/wit",
world: "wasi:cli/[email protected]",
world: "wasi:cli/[email protected]-rc-2023-10-18",
std_feature,
raw_strings,
// Automatically generated bindings for these functions will allocate
Expand Down Expand Up @@ -58,7 +58,7 @@ pub mod bindings {
});
}

#[export_name = "wasi:cli/[email protected]#run"]
#[export_name = "wasi:cli/[email protected]-rc-2023-10-18#run"]
#[cfg(feature = "command")]
pub unsafe extern "C" fn run() -> u32 {
#[link(wasm_import_module = "__main_module__")]
Expand Down Expand Up @@ -1774,7 +1774,7 @@ pub unsafe extern "C" fn poll_oneoff(
});
}

#[link(wasm_import_module = "wasi:io/[email protected]")]
#[link(wasm_import_module = "wasi:io/[email protected]-rc-2023-10-18")]
#[allow(improper_ctypes)] // FIXME(bytecodealliance/wit-bindgen#684)
extern "C" {
#[link_name = "poll-list"]
Expand Down Expand Up @@ -2495,7 +2495,7 @@ impl State {

fn get_environment(&self) -> &[StrTuple] {
if self.env_vars.get().is_none() {
#[link(wasm_import_module = "wasi:cli/[email protected]")]
#[link(wasm_import_module = "wasi:cli/[email protected]-rc-2023-10-18")]
extern "C" {
#[link_name = "get-environment"]
fn get_environment_import(rval: *mut StrTupleList);
Expand All @@ -2519,7 +2519,7 @@ impl State {

fn get_args(&self) -> &[WasmStr] {
if self.args.get().is_none() {
#[link(wasm_import_module = "wasi:cli/[email protected]")]
#[link(wasm_import_module = "wasi:cli/[email protected]-rc-2023-10-18")]
extern "C" {
#[link_name = "get-arguments"]
fn get_args_import(rval: *mut WasmStrList);
Expand Down

0 comments on commit 737dc23

Please sign in to comment.