-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* wasi-cli: update to version 0.2.0-rc-2023-12-05 * wasi-http: update to 0.2.0-rc-2023-12-05 * fix versions in extra (non-wasi) wits * component adapter: fixes to use cli/imports world, correct versions * wasmtime-wasi: cli/reactor is now cli/imports * sync wasi-http/wit with wasi/wit * fix cli-test component-basic.wat version Co-authored-by: Pat Hickey <[email protected]>
- Loading branch information
Showing
16 changed files
with
78 additions
and
102 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 |
---|---|---|
|
@@ -11,9 +11,9 @@ pub mod bindings { | |
wasmtime::component::bindgen!({ | ||
path: "wit", | ||
interfaces: " | ||
import wasi:http/[email protected]11-10; | ||
import wasi:http/[email protected]11-10; | ||
import wasi:http/[email protected]11-10; | ||
import wasi:http/[email protected]12-05; | ||
import wasi:http/[email protected]12-05; | ||
import wasi:http/[email protected]12-05; | ||
", | ||
tracing: true, | ||
async: false, | ||
|
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,6 +1,6 @@ | ||
// All of the same imports and exports available in the wasi:cli/command world | ||
// with addition of HTTP proxy related imports: | ||
world command-extended { | ||
include wasi:cli/command@0.2.0-rc-2023-11-10; | ||
import wasi:http/outgoing-handler@0.2.0-rc-2023-11-10; | ||
include wasi:cli/command@0.2.0-rc-2023-12-05; | ||
import wasi:http/outgoing-handler@0.2.0-rc-2023-12-05; | ||
} |
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,7 +1,7 @@ | ||
package wasi:cli@0.2.0-rc-2023-11-10; | ||
package wasi:cli@0.2.0-rc-2023-12-05; | ||
|
||
world command { | ||
include reactor; | ||
include imports; | ||
|
||
export run; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package wasi:cli@0.2.0-rc-2023-12-05; | ||
|
||
world imports { | ||
include wasi:clocks/imports@0.2.0-rc-2023-11-10; | ||
include wasi:filesystem/imports@0.2.0-rc-2023-11-10; | ||
include wasi:sockets/imports@0.2.0-rc-2023-11-10; | ||
include wasi:random/imports@0.2.0-rc-2023-11-10; | ||
include wasi:io/imports@0.2.0-rc-2023-11-10; | ||
|
||
import environment; | ||
import exit; | ||
import stdin; | ||
import stdout; | ||
import stderr; | ||
import terminal-input; | ||
import terminal-output; | ||
import terminal-stdin; | ||
import terminal-stdout; | ||
import terminal-stderr; | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,7 @@ pub mod bindings { | |
#[cfg(feature = "reactor")] | ||
wit_bindgen::generate!({ | ||
path: "../wasi/wit", | ||
world: "wasi:cli/reactor", | ||
world: "wasi:cli/imports", | ||
std_feature, | ||
raw_strings, | ||
// Automatically generated bindings for these functions will allocate | ||
|
@@ -87,9 +87,9 @@ pub mod bindings { | |
import wasi:clocks/[email protected]; | ||
import wasi:clocks/[email protected]; | ||
import wasi:random/[email protected]; | ||
import wasi:cli/[email protected]11-10; | ||
import wasi:cli/[email protected]11-10; | ||
import wasi:cli/[email protected]11-10; | ||
import wasi:cli/[email protected]12-05; | ||
import wasi:cli/[email protected]12-05; | ||
import wasi:cli/[email protected]12-05; | ||
} | ||
"#, | ||
std_feature, | ||
|
@@ -98,7 +98,7 @@ pub mod bindings { | |
}); | ||
} | ||
|
||
#[export_name = "wasi:cli/[email protected]11-10#run"] | ||
#[export_name = "wasi:cli/[email protected]12-05#run"] | ||
#[cfg(feature = "command")] | ||
pub unsafe extern "C" fn run() -> u32 { | ||
#[link(wasm_import_module = "__main_module__")] | ||
|
@@ -2641,7 +2641,7 @@ impl State { | |
#[cfg(not(feature = "proxy"))] | ||
fn get_environment(&self) -> &[StrTuple] { | ||
if self.env_vars.get().is_none() { | ||
#[link(wasm_import_module = "wasi:cli/[email protected]11-10")] | ||
#[link(wasm_import_module = "wasi:cli/[email protected]12-05")] | ||
extern "C" { | ||
#[link_name = "get-environment"] | ||
fn get_environment_import(rval: *mut StrTupleList); | ||
|
@@ -2666,7 +2666,7 @@ impl State { | |
#[cfg(not(feature = "proxy"))] | ||
fn get_args(&self) -> &[WasmStr] { | ||
if self.args.get().is_none() { | ||
#[link(wasm_import_module = "wasi:cli/[email protected]11-10")] | ||
#[link(wasm_import_module = "wasi:cli/[email protected]12-05")] | ||
extern "C" { | ||
#[link_name = "get-arguments"] | ||
fn get_args_import(rval: *mut WasmStrList); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// All of the same imports and exports available in the wasi:cli/command world | ||
// with addition of HTTP proxy related imports: | ||
world command-extended { | ||
include wasi:cli/command@0.2.0-rc-2023-11-10; | ||
import wasi:http/outgoing-handler@0.2.0-rc-2023-11-10; | ||
include wasi:cli/command@0.2.0-rc-2023-12-05; | ||
import wasi:http/outgoing-handler@0.2.0-rc-2023-12-05; | ||
} |
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,7 +1,7 @@ | ||
package wasi:cli@0.2.0-rc-2023-11-10; | ||
package wasi:cli@0.2.0-rc-2023-12-05; | ||
|
||
world command { | ||
include reactor; | ||
include imports; | ||
|
||
export run; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package wasi:cli@0.2.0-rc-2023-12-05; | ||
|
||
world imports { | ||
include wasi:clocks/imports@0.2.0-rc-2023-11-10; | ||
include wasi:filesystem/imports@0.2.0-rc-2023-11-10; | ||
include wasi:sockets/imports@0.2.0-rc-2023-11-10; | ||
include wasi:random/imports@0.2.0-rc-2023-11-10; | ||
include wasi:io/imports@0.2.0-rc-2023-11-10; | ||
|
||
import environment; | ||
import exit; | ||
import stdin; | ||
import stdout; | ||
import stderr; | ||
import terminal-input; | ||
import terminal-output; | ||
import terminal-stdin; | ||
import terminal-stdout; | ||
import terminal-stderr; | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ | |
(func $run (result (result)) | ||
(canon lift (core func $i "run"))) | ||
|
||
(instance (export (interface "wasi:cli/[email protected]11-10")) | ||
(instance (export (interface "wasi:cli/[email protected]12-05")) | ||
(export "run" (func $run))) | ||
) |