Skip to content

Commit

Permalink
release: 0.2.1 (#613)
Browse files Browse the repository at this point in the history
Add wit.toml
  • Loading branch information
ricochet authored Aug 1, 2024
1 parent 74a1d20 commit f922a15
Show file tree
Hide file tree
Showing 34 changed files with 101 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.wasm
3 changes: 3 additions & 0 deletions wasip2/cli/wit.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is automatically generated by wit.
# It is not intended for manual editing.
version = 1
11 changes: 11 additions & 0 deletions wasip2/cli/wit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version = "0.2.1"

[dependencies]
"wasi:io" = { path = "../io" }
"wasi:clocks" = { path = "../clocks" }
"wasi:filesystem" = { path = "../filesystem" }
"wasi:sockets" = { path = "../sockets" }
"wasi:random" = { path = "../random" }

[registries]
default = "https://ghcr.io/webassembly"
6 changes: 3 additions & 3 deletions wasip2/clocks/monotonic-clock.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:clocks@0.2.0;
package wasi:clocks@0.2.1;
/// WASI Monotonic Clock is a clock API intended to let users measure elapsed
/// time.
///
Expand All @@ -10,7 +10,7 @@ package wasi:[email protected];
@since(version = 0.2.0)
interface monotonic-clock {
@since(version = 0.2.0)
use wasi:io/poll@0.2.0.{pollable};
use wasi:io/poll@0.2.1.{pollable};

/// An instant in time, in nanoseconds. An instant is relative to an
/// unspecified initial value, and can only be compared to instances from
Expand All @@ -35,7 +35,7 @@ interface monotonic-clock {
resolution: func() -> duration;

/// Create a `pollable` which will resolve once the specified instant
/// has occured.
/// has occurred.
@since(version = 0.2.0)
subscribe-instant: func(
when: instant,
Expand Down
2 changes: 1 addition & 1 deletion wasip2/clocks/timezone.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:clocks@0.2.0;
package wasi:clocks@0.2.1;

@unstable(feature = clocks-timezone)
interface timezone {
Expand Down
2 changes: 1 addition & 1 deletion wasip2/clocks/wall-clock.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:clocks@0.2.0;
package wasi:clocks@0.2.1;
/// WASI Wall Clock is a clock API intended to let users query the current
/// time. The name "wall" makes an analogy to a "clock on the wall", which
/// is not necessarily monotonic as it may be reset.
Expand Down
3 changes: 3 additions & 0 deletions wasip2/clocks/wit.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is automatically generated by wit.
# It is not intended for manual editing.
version = 1
7 changes: 7 additions & 0 deletions wasip2/clocks/wit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version = "0.2.1"

[dependencies]
"ricochet:io" = { path = "../io" }

[registries]
default = "https://ghcr.io/"
2 changes: 1 addition & 1 deletion wasip2/clocks/world.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:clocks@0.2.0;
package wasi:clocks@0.2.1;

@since(version = 0.2.0)
world imports {
Expand Down
2 changes: 1 addition & 1 deletion wasip2/filesystem/preopens.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:filesystem@0.2.0;
package wasi:filesystem@0.2.1;

@since(version = 0.2.0)
interface preopens {
Expand Down
8 changes: 4 additions & 4 deletions wasip2/filesystem/types.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:filesystem@0.2.0;
package wasi:filesystem@0.2.1;
/// WASI filesystem is a filesystem API primarily intended to let users run WASI
/// programs that access their files on their existing filesystems, without
/// significant overhead.
Expand Down Expand Up @@ -26,9 +26,9 @@ package wasi:[email protected];
@since(version = 0.2.0)
interface types {
@since(version = 0.2.0)
use wasi:io/streams@0.2.0.{input-stream, output-stream, error};
use wasi:io/streams@0.2.1.{input-stream, output-stream, error};
@since(version = 0.2.0)
use wasi:clocks/wall-clock@0.2.0.{datetime};
use wasi:clocks/wall-clock@0.2.1.{datetime};

/// File size or length of a region within a file.
@since(version = 0.2.0)
Expand Down Expand Up @@ -83,7 +83,7 @@ interface types {
/// WASI. At this time, it should be interpreted as a request, and not a
/// requirement.
data-integrity-sync,
/// Requests that reads be performed at the same level of integrety
/// Requests that reads be performed at the same level of integrity
/// requested for writes. This is similar to `O_RSYNC` in POSIX.
///
/// The precise semantics of this operation have not yet been defined for
Expand Down
3 changes: 3 additions & 0 deletions wasip2/filesystem/wit.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is automatically generated by wit.
# It is not intended for manual editing.
version = 1
8 changes: 8 additions & 0 deletions wasip2/filesystem/wit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version = "0.2.1"

[dependencies]
"wasi:io" = { path = "../io" }
"wasi:clocks" = { path = "../clocks" }

[registries]
default = "https://ghcr.io/"
2 changes: 1 addition & 1 deletion wasip2/filesystem/world.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:filesystem@0.2.0;
package wasi:filesystem@0.2.1;

@since(version = 0.2.0)
world imports {
Expand Down
3 changes: 3 additions & 0 deletions wasip2/http/wit.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is automatically generated by wit.
# It is not intended for manual editing.
version = 1
14 changes: 14 additions & 0 deletions wasip2/http/wit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version = "0.2.1"

[dependencies]
"wasi:cli" = { path = "../cli" }
"wasi:random" = { path = "../random" }
"wasi:io" = { path = "../io" }
"wasi:clocks" = { path = "../clocks" }

# not used by http/proxy, but included to allow full contents of wasi-cli to validate
"wasi:filesystem" = { path = "../filesystem" }
"wasi:sockets" = { path = "../sockets" }

[registries]
default = "https://ghcr.io/"
2 changes: 1 addition & 1 deletion wasip2/io/error.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:io@0.2.0;
package wasi:io@0.2.1;

@since(version = 0.2.0)
interface error {
Expand Down
2 changes: 1 addition & 1 deletion wasip2/io/poll.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:io@0.2.0;
package wasi:io@0.2.1;

/// A poll API intended to let users wait for I/O events on multiple handles
/// at once.
Expand Down
10 changes: 7 additions & 3 deletions wasip2/io/streams.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:io@0.2.0;
package wasi:io@0.2.1;

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

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

/// Read from one stream and write to another.
///
/// The behavior of splice is equivelant to:
/// The behavior of splice is equivalent to:
/// 1. calling `check-write` on the `output-stream`
/// 2. calling `read` on the `input-stream` with the smaller of the
/// `check-write` permitted length and the `len` provided to `splice`
Expand Down
3 changes: 3 additions & 0 deletions wasip2/io/wit.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is automatically generated by wit.
# It is not intended for manual editing.
version = 1
1 change: 1 addition & 0 deletions wasip2/io/wit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version = "0.2.1"
2 changes: 1 addition & 1 deletion wasip2/io/world.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:io@0.2.0;
package wasi:io@0.2.1;

@since(version = 0.2.0)
world imports {
Expand Down
2 changes: 1 addition & 1 deletion wasip2/random/insecure-seed.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:random@0.2.0;
package wasi:random@0.2.1;
/// The insecure-seed interface for seeding hash-map DoS resistance.
///
/// It is intended to be portable at least between Unix-family platforms and
Expand Down
2 changes: 1 addition & 1 deletion wasip2/random/insecure.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:random@0.2.0;
package wasi:random@0.2.1;
/// The insecure interface for insecure pseudo-random numbers.
///
/// It is intended to be portable at least between Unix-family platforms and
Expand Down
2 changes: 1 addition & 1 deletion wasip2/random/random.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:random@0.2.0;
package wasi:random@0.2.1;
/// WASI Random is a random data API.
///
/// It is intended to be portable at least between Unix-family platforms and
Expand Down
3 changes: 3 additions & 0 deletions wasip2/random/wit.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is automatically generated by wit.
# It is not intended for manual editing.
version = 1
1 change: 1 addition & 0 deletions wasip2/random/wit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version = "0.2.1"
2 changes: 1 addition & 1 deletion wasip2/random/world.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:random@0.2.0;
package wasi:random@0.2.1;

@since(version = 0.2.0)
world imports {
Expand Down
2 changes: 1 addition & 1 deletion wasip2/sockets/ip-name-lookup.wit
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@since(version = 0.2.0)
interface ip-name-lookup {
@since(version = 0.2.0)
use wasi:io/poll@0.2.0.{pollable};
use wasi:io/poll@0.2.1.{pollable};
@since(version = 0.2.0)
use network.{network, error-code, ip-address};

Expand Down
6 changes: 3 additions & 3 deletions wasip2/sockets/tcp.wit
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
@since(version = 0.2.0)
interface tcp {
@since(version = 0.2.0)
use wasi:io/streams@0.2.0.{input-stream, output-stream};
use wasi:io/streams@0.2.1.{input-stream, output-stream};
@since(version = 0.2.0)
use wasi:io/poll@0.2.0.{pollable};
use wasi:io/poll@0.2.1.{pollable};
@since(version = 0.2.0)
use wasi:clocks/monotonic-clock@0.2.0.{duration};
use wasi:clocks/monotonic-clock@0.2.1.{duration};
@since(version = 0.2.0)
use network.{network, error-code, ip-socket-address, ip-address-family};

Expand Down
2 changes: 1 addition & 1 deletion wasip2/sockets/udp.wit
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@since(version = 0.2.0)
interface udp {
@since(version = 0.2.0)
use wasi:io/poll@0.2.0.{pollable};
use wasi:io/poll@0.2.1.{pollable};
@since(version = 0.2.0)
use network.{network, error-code, ip-socket-address, ip-address-family};

Expand Down
3 changes: 3 additions & 0 deletions wasip2/sockets/wit.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file is automatically generated by wit.
# It is not intended for manual editing.
version = 1
5 changes: 5 additions & 0 deletions wasip2/sockets/wit.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version = "0.2.1"

[dependencies]
"wasi:clocks" = { path = "../clocks" }
"wasi:io" = { path = "../io" }
2 changes: 1 addition & 1 deletion wasip2/sockets/world.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:sockets@0.2.0;
package wasi:sockets@0.2.1;

@since(version = 0.2.0)
world imports {
Expand Down

0 comments on commit f922a15

Please sign in to comment.