Skip to content

Commit d93b745

Browse files
authoredDec 5, 2024
import published wasip2 0.2.3 wits (#635)
1 parent 63a46f6 commit d93b745

26 files changed

+55
-55
lines changed
 

‎wasip2/cli/command.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:cli@0.2.2;
1+
package wasi:cli@0.2.3;
22

33
@since(version = 0.2.0)
44
world command {

‎wasip2/cli/imports.wit

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
package wasi:cli@0.2.2;
1+
package wasi:cli@0.2.3;
22

33
@since(version = 0.2.0)
44
world imports {
55
@since(version = 0.2.0)
6-
include wasi:clocks/imports@0.2.2;
6+
include wasi:clocks/imports@0.2.3;
77
@since(version = 0.2.0)
8-
include wasi:filesystem/imports@0.2.2;
8+
include wasi:filesystem/imports@0.2.3;
99
@since(version = 0.2.0)
10-
include wasi:sockets/imports@0.2.2;
10+
include wasi:sockets/imports@0.2.3;
1111
@since(version = 0.2.0)
12-
include wasi:random/imports@0.2.2;
12+
include wasi:random/imports@0.2.3;
1313
@since(version = 0.2.0)
14-
include wasi:io/imports@0.2.2;
14+
include wasi:io/imports@0.2.3;
1515

1616
@since(version = 0.2.0)
1717
import environment;

‎wasip2/cli/stdio.wit

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@since(version = 0.2.0)
22
interface stdin {
33
@since(version = 0.2.0)
4-
use wasi:io/streams@0.2.2.{input-stream};
4+
use wasi:io/streams@0.2.3.{input-stream};
55

66
@since(version = 0.2.0)
77
get-stdin: func() -> input-stream;
@@ -10,7 +10,7 @@ interface stdin {
1010
@since(version = 0.2.0)
1111
interface stdout {
1212
@since(version = 0.2.0)
13-
use wasi:io/streams@0.2.2.{output-stream};
13+
use wasi:io/streams@0.2.3.{output-stream};
1414

1515
@since(version = 0.2.0)
1616
get-stdout: func() -> output-stream;
@@ -19,7 +19,7 @@ interface stdout {
1919
@since(version = 0.2.0)
2020
interface stderr {
2121
@since(version = 0.2.0)
22-
use wasi:io/streams@0.2.2.{output-stream};
22+
use wasi:io/streams@0.2.3.{output-stream};
2323

2424
@since(version = 0.2.0)
2525
get-stderr: func() -> output-stream;

‎wasip2/clocks/monotonic-clock.wit

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.2;
1+
package wasi:clocks@0.2.3;
22
/// WASI Monotonic Clock is a clock API intended to let users measure elapsed
33
/// time.
44
///
@@ -10,7 +10,7 @@ package wasi:clocks@0.2.2;
1010
@since(version = 0.2.0)
1111
interface monotonic-clock {
1212
@since(version = 0.2.0)
13-
use wasi:io/poll@0.2.2.{pollable};
13+
use wasi:io/poll@0.2.3.{pollable};
1414

1515
/// An instant in time, in nanoseconds. An instant is relative to an
1616
/// unspecified initial value, and can only be compared to instances from

‎wasip2/clocks/timezone.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.2;
1+
package wasi:clocks@0.2.3;
22

33
@unstable(feature = clocks-timezone)
44
interface timezone {

‎wasip2/clocks/wall-clock.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.2;
1+
package wasi:clocks@0.2.3;
22
/// WASI Wall Clock is a clock API intended to let users query the current
33
/// time. The name "wall" makes an analogy to a "clock on the wall", which
44
/// is not necessarily monotonic as it may be reset.

‎wasip2/clocks/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.2;
1+
package wasi:clocks@0.2.3;
22

33
@since(version = 0.2.0)
44
world imports {

‎wasip2/filesystem/preopens.wit

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package wasi:filesystem@0.2.2;
1+
package wasi:filesystem@0.2.3;
22

33
@since(version = 0.2.0)
44
interface preopens {
55
@since(version = 0.2.0)
66
use types.{descriptor};
77

8-
/// Return the set of preopened directories, and their path.
8+
/// Return the set of preopened directories, and their paths.
99
@since(version = 0.2.0)
1010
get-directories: func() -> list<tuple<descriptor, string>>;
1111
}

‎wasip2/filesystem/types.wit

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:filesystem@0.2.2;
1+
package wasi:filesystem@0.2.3;
22
/// WASI filesystem is a filesystem API primarily intended to let users run WASI
33
/// programs that access their files on their existing filesystems, without
44
/// significant overhead.
@@ -26,9 +26,9 @@ package wasi:filesystem@0.2.2;
2626
@since(version = 0.2.0)
2727
interface types {
2828
@since(version = 0.2.0)
29-
use wasi:io/streams@0.2.2.{input-stream, output-stream, error};
29+
use wasi:io/streams@0.2.3.{input-stream, output-stream, error};
3030
@since(version = 0.2.0)
31-
use wasi:clocks/wall-clock@0.2.2.{datetime};
31+
use wasi:clocks/wall-clock@0.2.3.{datetime};
3232

3333
/// File size or length of a region within a file.
3434
@since(version = 0.2.0)
@@ -327,7 +327,7 @@ interface types {
327327
/// May fail with an error-code describing why the file cannot be appended.
328328
///
329329
/// Note: This allows using `write-stream`, which is similar to `write` with
330-
/// `O_APPEND` in in POSIX.
330+
/// `O_APPEND` in POSIX.
331331
@since(version = 0.2.0)
332332
append-via-stream: func() -> result<output-stream, error-code>;
333333

@@ -623,7 +623,7 @@ interface types {
623623
/// replaced. It may also include a secret value chosen by the
624624
/// implementation and not otherwise exposed.
625625
///
626-
/// Implementations are encourated to provide the following properties:
626+
/// Implementations are encouraged to provide the following properties:
627627
///
628628
/// - If the file is not modified or replaced, the computed hash value should
629629
/// usually not change.

‎wasip2/filesystem/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:filesystem@0.2.2;
1+
package wasi:filesystem@0.2.3;
22

33
@since(version = 0.2.0)
44
world imports {

‎wasip2/http/handler.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface incoming-handler {
1212
/// sent. This enables both streaming to the response body, and performing other
1313
/// work.
1414
///
15-
/// The implementer of this function must write a response to the
15+
/// The implementor of this function must write a response to the
1616
/// `response-outparam` before returning, or else the caller will respond
1717
/// with an error on its behalf.
1818
@since(version = 0.2.0)

‎wasip2/http/proxy.wit

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
package wasi:http@0.2.2;
1+
package wasi:http@0.2.3;
22

33
/// The `wasi:http/imports` world imports all the APIs for HTTP proxies.
44
/// It is intended to be `include`d in other worlds.
55
@since(version = 0.2.0)
66
world imports {
77
/// HTTP proxies have access to time and randomness.
88
@since(version = 0.2.0)
9-
import wasi:clocks/monotonic-clock@0.2.2;
9+
import wasi:clocks/monotonic-clock@0.2.3;
1010
@since(version = 0.2.0)
11-
import wasi:clocks/wall-clock@0.2.2;
11+
import wasi:clocks/wall-clock@0.2.3;
1212
@since(version = 0.2.0)
13-
import wasi:random/random@0.2.2;
13+
import wasi:random/random@0.2.3;
1414

1515
/// Proxies have standard output and error streams which are expected to
1616
/// terminate in a developer-facing console provided by the host.
1717
@since(version = 0.2.0)
18-
import wasi:cli/stdout@0.2.2;
18+
import wasi:cli/stdout@0.2.3;
1919
@since(version = 0.2.0)
20-
import wasi:cli/stderr@0.2.2;
20+
import wasi:cli/stderr@0.2.3;
2121

2222
/// TODO: this is a temporary workaround until component tooling is able to
2323
/// gracefully handle the absence of stdin. Hosts must return an eof stream
2424
/// for this import, which is what wasi-libc + tooling will do automatically
2525
/// when this import is properly removed.
2626
@since(version = 0.2.0)
27-
import wasi:cli/stdin@0.2.2;
27+
import wasi:cli/stdin@0.2.3;
2828

2929
/// This is the default handler to use when user code simply wants to make an
3030
/// HTTP request (e.g., via `fetch()`).

‎wasip2/http/types.wit

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
@since(version = 0.2.0)
55
interface types {
66
@since(version = 0.2.0)
7-
use wasi:clocks/monotonic-clock@0.2.2.{duration};
7+
use wasi:clocks/monotonic-clock@0.2.3.{duration};
88
@since(version = 0.2.0)
9-
use wasi:io/streams@0.2.2.{input-stream, output-stream};
9+
use wasi:io/streams@0.2.3.{input-stream, output-stream};
1010
@since(version = 0.2.0)
11-
use wasi:io/error@0.2.2.{error as io-error};
11+
use wasi:io/error@0.2.3.{error as io-error};
1212
@since(version = 0.2.0)
13-
use wasi:io/poll@0.2.2.{pollable};
13+
use wasi:io/poll@0.2.3.{pollable};
1414

1515
/// This type corresponds to HTTP standard Methods.
1616
@since(version = 0.2.0)
@@ -36,7 +36,7 @@ interface types {
3636
}
3737

3838
/// These cases are inspired by the IANA HTTP Proxy Error Types:
39-
/// https://www.iana.org/assignments/http-proxy-status/http-proxy-status.xhtml#table-http-proxy-error-types
39+
/// <https://www.iana.org/assignments/http-proxy-status/http-proxy-status.xhtml#table-http-proxy-error-types>
4040
@since(version = 0.2.0)
4141
variant error-code {
4242
DNS-timeout,

‎wasip2/io/error.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.2;
1+
package wasi:io@0.2.3;
22

33
@since(version = 0.2.0)
44
interface error {

‎wasip2/io/poll.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.2;
1+
package wasi:io@0.2.3;
22

33
/// A poll API intended to let users wait for I/O events on multiple handles
44
/// at once.

‎wasip2/io/streams.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.2;
1+
package wasi:io@0.2.3;
22

33
/// WASI I/O is an I/O abstraction API which is currently focused on providing
44
/// stream types.

‎wasip2/io/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.2;
1+
package wasi:io@0.2.3;
22

33
@since(version = 0.2.0)
44
world imports {

‎wasip2/random/insecure-seed.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.2;
1+
package wasi:random@0.2.3;
22
/// The insecure-seed interface for seeding hash-map DoS resistance.
33
///
44
/// It is intended to be portable at least between Unix-family platforms and

‎wasip2/random/insecure.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.2;
1+
package wasi:random@0.2.3;
22
/// The insecure interface for insecure pseudo-random numbers.
33
///
44
/// It is intended to be portable at least between Unix-family platforms and

‎wasip2/random/random.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.2;
1+
package wasi:random@0.2.3;
22
/// WASI Random is a random data API.
33
///
44
/// It is intended to be portable at least between Unix-family platforms and

‎wasip2/random/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.2;
1+
package wasi:random@0.2.3;
22

33
@since(version = 0.2.0)
44
world imports {

‎wasip2/sockets/ip-name-lookup.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@since(version = 0.2.0)
22
interface ip-name-lookup {
33
@since(version = 0.2.0)
4-
use wasi:io/poll@0.2.2.{pollable};
4+
use wasi:io/poll@0.2.3.{pollable};
55
@since(version = 0.2.0)
66
use network.{network, error-code, ip-address};
77

‎wasip2/sockets/network.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@since(version = 0.2.0)
22
interface network {
33
@unstable(feature = network-error-code)
4-
use wasi:io/error@0.2.2.{error};
4+
use wasi:io/error@0.2.3.{error};
55

66
/// An opaque resource that represents access to (a subset of) the network.
77
/// This enables context-based security for networking.

‎wasip2/sockets/tcp.wit

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@since(version = 0.2.0)
22
interface tcp {
33
@since(version = 0.2.0)
4-
use wasi:io/streams@0.2.2.{input-stream, output-stream};
4+
use wasi:io/streams@0.2.3.{input-stream, output-stream};
55
@since(version = 0.2.0)
6-
use wasi:io/poll@0.2.2.{pollable};
6+
use wasi:io/poll@0.2.3.{pollable};
77
@since(version = 0.2.0)
8-
use wasi:clocks/monotonic-clock@0.2.2.{duration};
8+
use wasi:clocks/monotonic-clock@0.2.3.{duration};
99
@since(version = 0.2.0)
1010
use network.{network, error-code, ip-socket-address, ip-address-family};
1111

@@ -66,7 +66,7 @@ interface tcp {
6666
/// - `not-in-progress`: A `bind` operation is not in progress.
6767
/// - `would-block`: Can't finish the operation, it is still in progress. (EWOULDBLOCK, EAGAIN)
6868
///
69-
/// # Implementers note
69+
/// # Implementors note
7070
/// When binding to a non-zero port, this bind operation shouldn't be affected by the TIME_WAIT
7171
/// state of a recently closed socket on the same local address. In practice this means that the SO_REUSEADDR
7272
/// socket option should be set implicitly on all platforms, except on Windows where this is the default behavior
@@ -115,7 +115,7 @@ interface tcp {
115115
/// - `not-in-progress`: A connect operation is not in progress.
116116
/// - `would-block`: Can't finish the operation, it is still in progress. (EWOULDBLOCK, EAGAIN)
117117
///
118-
/// # Implementers note
118+
/// # Implementors note
119119
/// The POSIX equivalent of `start-connect` is the regular `connect` syscall.
120120
/// Because all WASI sockets are non-blocking this is expected to return
121121
/// EINPROGRESS, which should be translated to `ok()` in WASI.
@@ -148,7 +148,7 @@ interface tcp {
148148
/// - `not-in-progress`: A listen operation is not in progress.
149149
/// - `would-block`: Can't finish the operation, it is still in progress. (EWOULDBLOCK, EAGAIN)
150150
///
151-
/// # Implementers note
151+
/// # Implementors note
152152
/// Unlike in POSIX, in WASI the listen operation is async. This enables
153153
/// interactive WASI hosts to inject permission prompts. Runtimes that
154154
/// don't want to make use of this ability can simply call the native

‎wasip2/sockets/udp.wit

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@since(version = 0.2.0)
22
interface udp {
33
@since(version = 0.2.0)
4-
use wasi:io/poll@0.2.2.{pollable};
4+
use wasi:io/poll@0.2.3.{pollable};
55
@since(version = 0.2.0)
66
use network.{network, error-code, ip-socket-address, ip-address-family};
77

@@ -55,7 +55,7 @@ interface udp {
5555
/// - `not-in-progress`: A `bind` operation is not in progress.
5656
/// - `would-block`: Can't finish the operation, it is still in progress. (EWOULDBLOCK, EAGAIN)
5757
///
58-
/// # Implementers note
58+
/// # Implementors note
5959
/// Unlike in POSIX, in WASI the bind operation is async. This enables
6060
/// interactive WASI hosts to inject permission prompts. Runtimes that
6161
/// don't want to make use of this ability can simply call the native

‎wasip2/sockets/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:sockets@0.2.2;
1+
package wasi:sockets@0.2.3;
22

33
@since(version = 0.2.0)
44
world imports {

0 commit comments

Comments
 (0)
Please sign in to comment.