forked from bytecodealliance/wasmtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec9d067
commit 737dc23
Showing
3 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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__")] | ||
|
@@ -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"] | ||
|
@@ -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); | ||
|
@@ -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); | ||
|