Skip to content

Commit ae870fe

Browse files
authored
chore: update to WASI 0.2.2 (#28)
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent 005c425 commit ae870fe

File tree

9 files changed

+22
-16
lines changed

9 files changed

+22
-16
lines changed

imports.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
<ul>
33
<li>Imports:
44
<ul>
5-
<li>interface <a href="#wasi_io_error_0_2_1"><code>wasi:io/[email protected].1</code></a></li>
6-
<li>interface <a href="#wasi_io_poll_0_2_1"><code>wasi:io/[email protected].1</code></a></li>
7-
<li>interface <a href="#wasi_io_streams_0_2_1"><code>wasi:io/[email protected].1</code></a></li>
5+
<li>interface <a href="#wasi_io_error_0_2_2"><code>wasi:io/[email protected].2</code></a></li>
6+
<li>interface <a href="#wasi_io_poll_0_2_2"><code>wasi:io/[email protected].2</code></a></li>
7+
<li>interface <a href="#wasi_io_streams_0_2_2"><code>wasi:io/[email protected].2</code></a></li>
88
<li>interface <a href="#wasi_blobstore_types_0_2_0_draft"><code>wasi:blobstore/[email protected]</code></a></li>
99
<li>interface <a href="#wasi_blobstore_container_0_2_0_draft"><code>wasi:blobstore/[email protected]</code></a></li>
1010
<li>interface <a href="#wasi_blobstore_blobstore_0_2_0_draft"><code>wasi:blobstore/[email protected]</code></a></li>
1111
</ul>
1212
</li>
1313
</ul>
14-
<h2><a id="wasi_io_error_0_2_1"></a>Import interface wasi:io/[email protected].1</h2>
14+
<h2><a id="wasi_io_error_0_2_2"></a>Import interface wasi:io/[email protected].2</h2>
1515
<hr />
1616
<h3>Types</h3>
1717
<h4><a id="error"></a><code>resource error</code></h4>
@@ -44,7 +44,7 @@ hazard.</p>
4444
<ul>
4545
<li><a id="method_error_to_debug_string.0"></a> <code>string</code></li>
4646
</ul>
47-
<h2><a id="wasi_io_poll_0_2_1"></a>Import interface wasi:io/[email protected].1</h2>
47+
<h2><a id="wasi_io_poll_0_2_2"></a>Import interface wasi:io/[email protected].2</h2>
4848
<p>A poll API intended to let users wait for I/O events on multiple handles
4949
at once.</p>
5050
<hr />
@@ -97,7 +97,7 @@ being ready for I/O.</p>
9797
<ul>
9898
<li><a id="poll.0"></a> list&lt;<code>u32</code>&gt;</li>
9999
</ul>
100-
<h2><a id="wasi_io_streams_0_2_1"></a>Import interface wasi:io/[email protected].1</h2>
100+
<h2><a id="wasi_io_streams_0_2_2"></a>Import interface wasi:io/[email protected].2</h2>
101101
<p>WASI I/O is an I/O abstraction API which is currently focused on providing
102102
stream types.</p>
103103
<p>In the future, the component model is expected to add built-in stream types;
@@ -118,6 +118,8 @@ when it does, they are expected to subsume this API.</p>
118118
<p><a id="stream_error.last_operation_failed"></a><code>last-operation-failed</code>: own&lt;<a href="#error"><a href="#error"><code>error</code></a></a>&gt;</p>
119119
<p>The last operation (a write or flush) failed before completion.
120120
<p>More information is available in the <a href="#error"><code>error</code></a> payload.</p>
121+
<p>After this, the stream will be closed. All future operations return
122+
<a href="#stream_error.closed"><code>stream-error::closed</code></a>.</p>
121123
</li>
122124
<li>
123125
<p><a id="stream_error.closed"></a><code>closed</code></p>

wit/container.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// a Container is a collection of objects
22
interface container {
3-
use wasi:io/streams@0.2.1.{
3+
use wasi:io/streams@0.2.2.{
44
input-stream,
55
output-stream,
66
};

wit/deps.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[io]
2-
url = "https://github.com/WebAssembly/wasi-io/archive/v0.2.1.tar.gz"
3-
sha256 = "2a74bd811adc46b5a0f19827ddbde89870e52b17615f4d0873f06fd977250caf"
4-
sha512 = "94624f00c66e66203592cee820f80b1ba91ecdb71f682c154f25eaf71f8d8954197dcb64503bc21e72ed5e812af7eae876df47b7eb727b02db3a74a7ce0aefca"
2+
url = "https://github.com/WebAssembly/wasi-io/archive/v0.2.2.tar.gz"
3+
sha256 = "6d8dbfaaaa685167c1829616dc7265f5f3cb776845879555612d56544f6d9bfc"
4+
sha512 = "52219562c4183503169cd2947b8164e1c96974500a5adf15bbf382c5992a10a626cc89c3b319204aeda6698ce59cbca2c42f98f7fde296aa77b9db4b41154dbe"

wit/deps.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
io = "https://github.com/WebAssembly/wasi-io/archive/v0.2.1.tar.gz"
1+
io = "https://github.com/WebAssembly/wasi-io/archive/v0.2.2.tar.gz"

wit/deps/io/error.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.1;
1+
package wasi:io@0.2.2;
22

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

wit/deps/io/poll.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.1;
1+
package wasi:io@0.2.2;
22

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

wit/deps/io/streams.wit

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.1;
1+
package wasi:io@0.2.2;
22

33
/// WASI I/O is an I/O abstraction API which is currently focused on providing
44
/// stream types.
@@ -18,6 +18,9 @@ interface streams {
1818
/// The last operation (a write or flush) failed before completion.
1919
///
2020
/// More information is available in the `error` payload.
21+
///
22+
/// After this, the stream will be closed. All future operations return
23+
/// `stream-error::closed`.
2124
last-operation-failed(error),
2225
/// The stream is closed: no more input will be accepted by the
2326
/// stream. A closed output-stream will return this error on all
@@ -205,6 +208,7 @@ interface streams {
205208
/// The created `pollable` is a child resource of the `output-stream`.
206209
/// Implementations may trap if the `output-stream` is dropped before
207210
/// all derived `pollable`s created with this function are dropped.
211+
@since(version = 0.2.0)
208212
subscribe: func() -> pollable;
209213

210214
/// Write zeroes to a stream.

wit/deps/io/world.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.1;
1+
package wasi:io@0.2.2;
22

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

wit/types.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Types used by blobstore
22
interface types {
3-
use wasi:io/streams@0.2.1.{input-stream, output-stream};
3+
use wasi:io/streams@0.2.2.{input-stream, output-stream};
44

55
// name of a container, a collection of objects.
66
// The container name may be any valid UTF-8 string.

0 commit comments

Comments
 (0)