-
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
* Put versions in all WASI WIT files This commit starts exercising the versioning feature of WIT by ensuring that all WASI descriptions have a version associated with them. The version chosen is 0.2.0 which reflects the upcoming "preview 2" release where in theory 0.1.0 was claimed by preview1. This is intended to stay as 0.2.0 for now and we'll determine how best to update these numbers in the future once preview2 is released. Closes #7171 * Allow omitting versions in `with` keys As a convenience for now this enables omitting the version of an interface from a `with` key. This has a risk of not working well if two packages are present and one has a version and one doesn't, but that's left as a PR to fix in the future as the benefit of avoiding repetition seems good for now. * Allow omitting versions in trappable_error_types * Use 0.2.0-rc-2023-10-18 as a version number * More test fixes * Fix another test
- Loading branch information
1 parent
ce3d775
commit b8286f9
Showing
53 changed files
with
327 additions
and
290 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
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 |
---|---|---|
@@ -1,37 +1,37 @@ | ||
// All of the same imports and exports available in the wasi:cli/command world | ||
// with addition of HTTP proxy related imports: | ||
world command-extended { | ||
import wasi:clocks/wall-clock; | ||
import wasi:clocks/monotonic-clock; | ||
import wasi:clocks/timezone; | ||
import wasi:filesystem/types; | ||
import wasi:filesystem/preopens; | ||
import wasi:sockets/instance-network; | ||
import wasi:sockets/ip-name-lookup; | ||
import wasi:sockets/network; | ||
import wasi:sockets/tcp-create-socket; | ||
import wasi:sockets/tcp; | ||
import wasi:sockets/udp-create-socket; | ||
import wasi:sockets/udp; | ||
import wasi:random/random; | ||
import wasi:random/insecure; | ||
import wasi:random/insecure-seed; | ||
import wasi:io/poll; | ||
import wasi:io/streams; | ||
import wasi:cli/environment; | ||
import wasi:cli/exit; | ||
import wasi:cli/stdin; | ||
import wasi:cli/stdout; | ||
import wasi:cli/stderr; | ||
import wasi:cli/terminal-input; | ||
import wasi:cli/terminal-output; | ||
import wasi:cli/terminal-stdin; | ||
import wasi:cli/terminal-stdout; | ||
import wasi:cli/terminal-stderr; | ||
import wasi:clocks/wall-clock@0.2.0-rc-2023-10-18; | ||
import wasi:clocks/monotonic-clock@0.2.0-rc-2023-10-18; | ||
import wasi:clocks/timezone@0.2.0-rc-2023-10-18; | ||
import wasi:filesystem/types@0.2.0-rc-2023-10-18; | ||
import wasi:filesystem/preopens@0.2.0-rc-2023-10-18; | ||
import wasi:sockets/instance-network@0.2.0-rc-2023-10-18; | ||
import wasi:sockets/ip-name-lookup@0.2.0-rc-2023-10-18; | ||
import wasi:sockets/network@0.2.0-rc-2023-10-18; | ||
import wasi:sockets/tcp-create-socket@0.2.0-rc-2023-10-18; | ||
import wasi:sockets/tcp@0.2.0-rc-2023-10-18; | ||
import wasi:sockets/udp-create-socket@0.2.0-rc-2023-10-18; | ||
import wasi:sockets/udp@0.2.0-rc-2023-10-18; | ||
import wasi:random/random@0.2.0-rc-2023-10-18; | ||
import wasi:random/insecure@0.2.0-rc-2023-10-18; | ||
import wasi:random/insecure-seed@0.2.0-rc-2023-10-18; | ||
import wasi:io/poll@0.2.0-rc-2023-10-18; | ||
import wasi:io/streams@0.2.0-rc-2023-10-18; | ||
import wasi:cli/environment@0.2.0-rc-2023-10-18; | ||
import wasi:cli/exit@0.2.0-rc-2023-10-18; | ||
import wasi:cli/stdin@0.2.0-rc-2023-10-18; | ||
import wasi:cli/stdout@0.2.0-rc-2023-10-18; | ||
import wasi:cli/stderr@0.2.0-rc-2023-10-18; | ||
import wasi:cli/terminal-input@0.2.0-rc-2023-10-18; | ||
import wasi:cli/terminal-output@0.2.0-rc-2023-10-18; | ||
import wasi:cli/terminal-stdin@0.2.0-rc-2023-10-18; | ||
import wasi:cli/terminal-stdout@0.2.0-rc-2023-10-18; | ||
import wasi:cli/terminal-stderr@0.2.0-rc-2023-10-18; | ||
|
||
// We should replace all others with `include self.command` | ||
// as soon as the unioning of worlds is available: | ||
// https://github.com/WebAssembly/component-model/issues/169 | ||
import wasi:logging/logging; | ||
import wasi:http/outgoing-handler; | ||
import wasi:logging/logging@0.2.0-rc-2023-10-18; | ||
import wasi:http/outgoing-handler@0.2.0-rc-2023-10-18; | ||
} |
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; | ||
package wasi:cli@0.2.0-rc-2023-10-18; | ||
|
||
world command { | ||
include reactor; | ||
|
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,17 +1,17 @@ | ||
interface stdin { | ||
use wasi:io/streams.{input-stream}; | ||
use wasi:io/streams@0.2.0-rc-2023-10-18.{input-stream}; | ||
|
||
get-stdin: func() -> input-stream; | ||
} | ||
|
||
interface stdout { | ||
use wasi:io/streams.{output-stream}; | ||
use wasi:io/streams@0.2.0-rc-2023-10-18.{output-stream}; | ||
|
||
get-stdout: func() -> output-stream; | ||
} | ||
|
||
interface stderr { | ||
use wasi:io/streams.{output-stream}; | ||
use wasi:io/streams@0.2.0-rc-2023-10-18.{output-stream}; | ||
|
||
get-stderr: func() -> output-stream; | ||
} |
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,4 +1,4 @@ | ||
package wasi:clocks; | ||
package wasi:clocks@0.2.0-rc-2023-10-18; | ||
|
||
world imports { | ||
import monotonic-clock; | ||
|
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,4 +1,4 @@ | ||
package wasi:filesystem; | ||
package wasi:filesystem@0.2.0-rc-2023-10-18; | ||
|
||
world imports { | ||
import types; | ||
|
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
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,4 +1,4 @@ | ||
package wasi:io; | ||
package wasi:io@0.2.0-rc-2023-10-18; | ||
|
||
world imports { | ||
import streams; | ||
|
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,4 +1,4 @@ | ||
package wasi:logging; | ||
package wasi:logging@0.2.0-rc-2023-10-18; | ||
|
||
world imports { | ||
import logging; | ||
|
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:random; | ||
package wasi:random@0.2.0-rc-2023-10-18; | ||
|
||
world imports { | ||
import random; | ||
|
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
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:sockets; | ||
package wasi:sockets@0.2.0-rc-2023-10-18; | ||
|
||
world imports { | ||
import instance-network; | ||
|
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
Oops, something went wrong.