-
Notifications
You must be signed in to change notification settings - Fork 17
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
fcab1c7
commit a0dfc28
Showing
9 changed files
with
72 additions
and
72 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
|
@@ -12,7 +12,7 @@ static WASI_EXIT_FNS: OnceLock<Vec<(&str, FuncParams, FuncResults)>> = OnceLock: | |
fn get_wasi_exit_fns() -> &'static Vec<(&'static str, FuncParams, FuncResults)> { | ||
WASI_EXIT_FNS.get_or_init(|| { | ||
Vec::from([( | ||
"wasi:cli/[email protected]2023-12-05#exit", | ||
"wasi:cli/[email protected]2024-01-16#exit", | ||
vec![ValType::I32], | ||
vec![], | ||
)]) | ||
|
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 |
---|---|---|
|
@@ -222,7 +222,7 @@ pub(crate) fn stub_env_virt(module: &mut Module) -> Result<()> { | |
module.replace_imported_func( | ||
module | ||
.imports | ||
.get_func("wasi:cli/[email protected]2023-12-05", fn_name)?, | ||
.get_func("wasi:cli/[email protected]2024-01-16", fn_name)?, | ||
|(body, _)| { | ||
body.unreachable(); | ||
}, | ||
|
@@ -240,7 +240,7 @@ pub(crate) fn strip_env_virt(module: &mut Module) -> Result<()> { | |
|
||
for fn_name in WASI_ENV_FNS { | ||
if let Ok(fid) = module.exports.get_func(format!( | ||
"wasi:cli/[email protected]2023-12-05#{fn_name}" | ||
"wasi:cli/[email protected]2024-01-16#{fn_name}" | ||
)) { | ||
module.replace_exported_func(fid, |(body, _)| { | ||
body.unreachable(); | ||
|
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 |
---|---|---|
|
@@ -6,42 +6,42 @@ use super::StubRequirement; | |
/// Imports exposed by WASI for STDIO functionality which are allowed to be missing | ||
const WASI_STDIO_IMPORTS: &[(&str, &str, &StubRequirement)] = &[ | ||
( | ||
"wasi:cli/[email protected]2023-12-05", | ||
"wasi:cli/[email protected]2024-01-16", | ||
"get-stdin", | ||
&StubRequirement::Optional, | ||
), | ||
( | ||
"wasi:cli/[email protected]2023-12-05", | ||
"wasi:cli/[email protected]2024-01-16", | ||
"get-stdout", | ||
&StubRequirement::Optional, | ||
), | ||
( | ||
"wasi:cli/[email protected]2023-12-05", | ||
"wasi:cli/[email protected]2024-01-16", | ||
"get-stderr", | ||
&StubRequirement::Optional, | ||
), | ||
( | ||
"wasi:cli/[email protected]2023-12-05", | ||
"wasi:cli/[email protected]2024-01-16", | ||
"get-terminal-stdin", | ||
&StubRequirement::Optional, | ||
), | ||
( | ||
"wasi:cli/[email protected]2023-12-05", | ||
"wasi:cli/[email protected]2024-01-16", | ||
"get-terminal-stdout", | ||
&StubRequirement::Optional, | ||
), | ||
( | ||
"wasi:cli/[email protected]2023-12-05", | ||
"wasi:cli/[email protected]2024-01-16", | ||
"get-terminal-stderr", | ||
&StubRequirement::Optional, | ||
), | ||
( | ||
"wasi:cli/[email protected]2023-12-05", | ||
"wasi:cli/[email protected]2024-01-16", | ||
"drop-terminal-input", | ||
&StubRequirement::Optional, | ||
), | ||
( | ||
"wasi:cli/[email protected]2023-12-05", | ||
"wasi:cli/[email protected]2024-01-16", | ||
"drop-terminal-output", | ||
&StubRequirement::Optional, | ||
), | ||
|
@@ -72,14 +72,14 @@ pub(crate) fn stub_stdio_virt(module: &mut Module) -> Result<()> { | |
|
||
/// Exported functions related to STDIO | ||
const WASI_STDIO_EXPORTS: [&str; 8] = [ | ||
"wasi:cli/[email protected]2023-12-05#get-stdin", | ||
"wasi:cli/[email protected]2023-12-05#get-stdout", | ||
"wasi:cli/[email protected]2023-12-05#get-stderr", | ||
"wasi:cli/[email protected]2023-12-05#get-terminal-stdin", | ||
"wasi:cli/[email protected]2023-12-05#get-terminal-stdout", | ||
"wasi:cli/[email protected]2023-12-05#get-terminal-stderr", | ||
"wasi:cli/[email protected]2023-12-05#[dtor]terminal-input", | ||
"wasi:cli/[email protected]2023-12-05#[dtor]terminal-output", | ||
"wasi:cli/[email protected]2024-01-16#get-stdin", | ||
"wasi:cli/[email protected]2024-01-16#get-stdout", | ||
"wasi:cli/[email protected]2024-01-16#get-stderr", | ||
"wasi:cli/[email protected]2024-01-16#get-terminal-stdin", | ||
"wasi:cli/[email protected]2024-01-16#get-terminal-stdout", | ||
"wasi:cli/[email protected]2024-01-16#get-terminal-stderr", | ||
"wasi:cli/[email protected]2024-01-16#[dtor]terminal-input", | ||
"wasi:cli/[email protected]2024-01-16#[dtor]terminal-output", | ||
]; | ||
|
||
/// Strip exported WASI functions that implement standard I/O (stdin, stdout, etc) access | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package wasi:cli@0.2.0-rc-2023-12-05; | ||
package wasi:cli@0.2.0-rc-2024-01-16; | ||
|
||
world command { | ||
include imports; | ||
|
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
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
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