Skip to content

Commit f922a15

Browse files
authored
release: 0.2.1 (#613)
Add wit.toml
1 parent 74a1d20 commit f922a15

34 files changed

+101
-28
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.wasm

Diff for: wasip2/cli/wit.lock

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file is automatically generated by wit.
2+
# It is not intended for manual editing.
3+
version = 1

Diff for: wasip2/cli/wit.toml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version = "0.2.1"
2+
3+
[dependencies]
4+
"wasi:io" = { path = "../io" }
5+
"wasi:clocks" = { path = "../clocks" }
6+
"wasi:filesystem" = { path = "../filesystem" }
7+
"wasi:sockets" = { path = "../sockets" }
8+
"wasi:random" = { path = "../random" }
9+
10+
[registries]
11+
default = "https://ghcr.io/webassembly"

Diff for: wasip2/clocks/monotonic-clock.wit

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.0;
1+
package wasi:clocks@0.2.1;
22
/// WASI Monotonic Clock is a clock API intended to let users measure elapsed
33
/// time.
44
///
@@ -10,7 +10,7 @@ package wasi:[email protected];
1010
@since(version = 0.2.0)
1111
interface monotonic-clock {
1212
@since(version = 0.2.0)
13-
use wasi:io/poll@0.2.0.{pollable};
13+
use wasi:io/poll@0.2.1.{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
@@ -35,7 +35,7 @@ interface monotonic-clock {
3535
resolution: func() -> duration;
3636

3737
/// Create a `pollable` which will resolve once the specified instant
38-
/// has occured.
38+
/// has occurred.
3939
@since(version = 0.2.0)
4040
subscribe-instant: func(
4141
when: instant,

Diff for: wasip2/clocks/timezone.wit

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

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

Diff for: 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.0;
1+
package wasi:clocks@0.2.1;
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.

Diff for: wasip2/clocks/wit.lock

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file is automatically generated by wit.
2+
# It is not intended for manual editing.
3+
version = 1

Diff for: wasip2/clocks/wit.toml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version = "0.2.1"
2+
3+
[dependencies]
4+
"ricochet:io" = { path = "../io" }
5+
6+
[registries]
7+
default = "https://ghcr.io/"

Diff for: wasip2/clocks/world.wit

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

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

Diff for: wasip2/filesystem/preopens.wit

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

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

Diff for: wasip2/filesystem/types.wit

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:filesystem@0.2.0;
1+
package wasi:filesystem@0.2.1;
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:[email protected];
2626
@since(version = 0.2.0)
2727
interface types {
2828
@since(version = 0.2.0)
29-
use wasi:io/streams@0.2.0.{input-stream, output-stream, error};
29+
use wasi:io/streams@0.2.1.{input-stream, output-stream, error};
3030
@since(version = 0.2.0)
31-
use wasi:clocks/wall-clock@0.2.0.{datetime};
31+
use wasi:clocks/wall-clock@0.2.1.{datetime};
3232

3333
/// File size or length of a region within a file.
3434
@since(version = 0.2.0)
@@ -83,7 +83,7 @@ interface types {
8383
/// WASI. At this time, it should be interpreted as a request, and not a
8484
/// requirement.
8585
data-integrity-sync,
86-
/// Requests that reads be performed at the same level of integrety
86+
/// Requests that reads be performed at the same level of integrity
8787
/// requested for writes. This is similar to `O_RSYNC` in POSIX.
8888
///
8989
/// The precise semantics of this operation have not yet been defined for

Diff for: wasip2/filesystem/wit.lock

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file is automatically generated by wit.
2+
# It is not intended for manual editing.
3+
version = 1

Diff for: wasip2/filesystem/wit.toml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version = "0.2.1"
2+
3+
[dependencies]
4+
"wasi:io" = { path = "../io" }
5+
"wasi:clocks" = { path = "../clocks" }
6+
7+
[registries]
8+
default = "https://ghcr.io/"

Diff for: wasip2/filesystem/world.wit

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

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

Diff for: wasip2/http/wit.lock

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file is automatically generated by wit.
2+
# It is not intended for manual editing.
3+
version = 1

Diff for: wasip2/http/wit.toml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version = "0.2.1"
2+
3+
[dependencies]
4+
"wasi:cli" = { path = "../cli" }
5+
"wasi:random" = { path = "../random" }
6+
"wasi:io" = { path = "../io" }
7+
"wasi:clocks" = { path = "../clocks" }
8+
9+
# not used by http/proxy, but included to allow full contents of wasi-cli to validate
10+
"wasi:filesystem" = { path = "../filesystem" }
11+
"wasi:sockets" = { path = "../sockets" }
12+
13+
[registries]
14+
default = "https://ghcr.io/"

Diff for: wasip2/io/error.wit

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

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

Diff for: wasip2/io/poll.wit

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

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

Diff for: wasip2/io/streams.wit

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.0;
1+
package wasi:io@0.2.1;
22

33
/// WASI I/O is an I/O abstraction API which is currently focused on providing
44
/// stream types.
@@ -112,6 +112,10 @@ interface streams {
112112
/// promptly, which could even be zero. To wait for the stream to be ready to
113113
/// accept data, the `subscribe` function to obtain a `pollable` which can be
114114
/// polled for using `wasi:io/poll`.
115+
///
116+
/// Dropping an `output-stream` while there's still an active write in
117+
/// progress may result in the data being lost. Before dropping the stream,
118+
/// be sure to fully flush your writes.
115119
@since(version = 0.2.0)
116120
resource output-stream {
117121
/// Check readiness for writing. This function never blocks.
@@ -192,7 +196,7 @@ interface streams {
192196
blocking-flush: func() -> result<_, stream-error>;
193197

194198
/// Create a `pollable` which will resolve once the output-stream
195-
/// is ready for more writing, or an error has occured. When this
199+
/// is ready for more writing, or an error has occurred. When this
196200
/// pollable is ready, `check-write` will return `ok(n)` with n>0, or an
197201
/// error.
198202
///
@@ -247,7 +251,7 @@ interface streams {
247251

248252
/// Read from one stream and write to another.
249253
///
250-
/// The behavior of splice is equivelant to:
254+
/// The behavior of splice is equivalent to:
251255
/// 1. calling `check-write` on the `output-stream`
252256
/// 2. calling `read` on the `input-stream` with the smaller of the
253257
/// `check-write` permitted length and the `len` provided to `splice`

Diff for: wasip2/io/wit.lock

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file is automatically generated by wit.
2+
# It is not intended for manual editing.
3+
version = 1

Diff for: wasip2/io/wit.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version = "0.2.1"

Diff for: wasip2/io/world.wit

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

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

Diff for: 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.0;
1+
package wasi:random@0.2.1;
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

Diff for: wasip2/random/insecure.wit

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

Diff for: wasip2/random/random.wit

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

Diff for: wasip2/random/wit.lock

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file is automatically generated by wit.
2+
# It is not intended for manual editing.
3+
version = 1

Diff for: wasip2/random/wit.toml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version = "0.2.1"

Diff for: wasip2/random/world.wit

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

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

Diff for: 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.0.{pollable};
4+
use wasi:io/poll@0.2.1.{pollable};
55
@since(version = 0.2.0)
66
use network.{network, error-code, ip-address};
77

Diff for: wasip2/sockets/tcp.wit

+3-3
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.0.{input-stream, output-stream};
4+
use wasi:io/streams@0.2.1.{input-stream, output-stream};
55
@since(version = 0.2.0)
6-
use wasi:io/poll@0.2.0.{pollable};
6+
use wasi:io/poll@0.2.1.{pollable};
77
@since(version = 0.2.0)
8-
use wasi:clocks/monotonic-clock@0.2.0.{duration};
8+
use wasi:clocks/monotonic-clock@0.2.1.{duration};
99
@since(version = 0.2.0)
1010
use network.{network, error-code, ip-socket-address, ip-address-family};
1111

Diff for: wasip2/sockets/udp.wit

+1-1
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.0.{pollable};
4+
use wasi:io/poll@0.2.1.{pollable};
55
@since(version = 0.2.0)
66
use network.{network, error-code, ip-socket-address, ip-address-family};
77

Diff for: wasip2/sockets/wit.lock

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file is automatically generated by wit.
2+
# It is not intended for manual editing.
3+
version = 1

Diff for: wasip2/sockets/wit.toml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version = "0.2.1"
2+
3+
[dependencies]
4+
"wasi:clocks" = { path = "../clocks" }
5+
"wasi:io" = { path = "../io" }

Diff for: wasip2/sockets/world.wit

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

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

0 commit comments

Comments
 (0)