Skip to content

Commit 6a86347

Browse files
authored
Merge pull request #132 from yoshuawuyts/v0.2.2
Update to v0.2.2
2 parents f45069d + d9b692e commit 6a86347

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+283
-265
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ jobs:
1818
./wit-deps lock --check
1919
- uses: WebAssembly/wit-abi-up-to-date@v22
2020
with:
21-
wasm-tools: '1.215.0'
22-
wit-bindgen: '0.30.0'
21+
wasm-tools: '1.218.0'
22+
wit-bindgen: '0.33.0'
2323
worlds: 'imports proxy'

imports.md

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ It is intended to be <code>include</code>d in other worlds.</p>
44
<ul>
55
<li>Imports:
66
<ul>
7-
<li>interface <a href="#wasi_io_poll_0_2_1"><code>wasi:io/[email protected].1</code></a></li>
8-
<li>interface <a href="#wasi_clocks_monotonic_clock_0_2_1"><code>wasi:clocks/[email protected].1</code></a></li>
9-
<li>interface <a href="#wasi_clocks_wall_clock_0_2_1"><code>wasi:clocks/[email protected].1</code></a></li>
10-
<li>interface <a href="#wasi_random_random_0_2_1"><code>wasi:random/[email protected].1</code></a></li>
11-
<li>interface <a href="#wasi_io_error_0_2_1"><code>wasi:io/[email protected].1</code></a></li>
12-
<li>interface <a href="#wasi_io_streams_0_2_1"><code>wasi:io/[email protected].1</code></a></li>
13-
<li>interface <a href="#wasi_cli_stdout_0_2_1"><code>wasi:cli/[email protected].1</code></a></li>
14-
<li>interface <a href="#wasi_cli_stderr_0_2_1"><code>wasi:cli/[email protected].1</code></a></li>
15-
<li>interface <a href="#wasi_cli_stdin_0_2_1"><code>wasi:cli/[email protected].1</code></a></li>
16-
<li>interface <a href="#wasi_http_types_0_2_1"><code>wasi:http/[email protected].1</code></a></li>
17-
<li>interface <a href="#wasi_http_outgoing_handler_0_2_1"><code>wasi:http/[email protected].1</code></a></li>
7+
<li>interface <a href="#wasi_io_poll_0_2_2"><code>wasi:io/[email protected].2</code></a></li>
8+
<li>interface <a href="#wasi_clocks_monotonic_clock_0_2_2"><code>wasi:clocks/[email protected].2</code></a></li>
9+
<li>interface <a href="#wasi_clocks_wall_clock_0_2_2"><code>wasi:clocks/[email protected].2</code></a></li>
10+
<li>interface <a href="#wasi_random_random_0_2_2"><code>wasi:random/[email protected].2</code></a></li>
11+
<li>interface <a href="#wasi_io_error_0_2_2"><code>wasi:io/[email protected].2</code></a></li>
12+
<li>interface <a href="#wasi_io_streams_0_2_2"><code>wasi:io/[email protected].2</code></a></li>
13+
<li>interface <a href="#wasi_cli_stdout_0_2_2"><code>wasi:cli/[email protected].2</code></a></li>
14+
<li>interface <a href="#wasi_cli_stderr_0_2_2"><code>wasi:cli/[email protected].2</code></a></li>
15+
<li>interface <a href="#wasi_cli_stdin_0_2_2"><code>wasi:cli/[email protected].2</code></a></li>
16+
<li>interface <a href="#wasi_http_types_0_2_2"><code>wasi:http/[email protected].2</code></a></li>
17+
<li>interface <a href="#wasi_http_outgoing_handler_0_2_2"><code>wasi:http/[email protected].2</code></a></li>
1818
</ul>
1919
</li>
2020
</ul>
21-
<h2><a id="wasi_io_poll_0_2_1"></a>Import interface wasi:io/[email protected].1</h2>
21+
<h2><a id="wasi_io_poll_0_2_2"></a>Import interface wasi:io/[email protected].2</h2>
2222
<p>A poll API intended to let users wait for I/O events on multiple handles
2323
at once.</p>
2424
<hr />
@@ -71,7 +71,7 @@ being ready for I/O.</p>
7171
<ul>
7272
<li><a id="poll.0"></a> list&lt;<code>u32</code>&gt;</li>
7373
</ul>
74-
<h2><a id="wasi_clocks_monotonic_clock_0_2_1"></a>Import interface wasi:clocks/[email protected].1</h2>
74+
<h2><a id="wasi_clocks_monotonic_clock_0_2_2"></a>Import interface wasi:clocks/[email protected].2</h2>
7575
<p>WASI Monotonic Clock is a clock API intended to let users measure elapsed
7676
time.</p>
7777
<p>It is intended to be portable at least between Unix-family platforms and
@@ -130,7 +130,7 @@ elapsed from the time this function is invoked.</p>
130130
<ul>
131131
<li><a id="subscribe_duration.0"></a> own&lt;<a href="#pollable"><a href="#pollable"><code>pollable</code></a></a>&gt;</li>
132132
</ul>
133-
<h2><a id="wasi_clocks_wall_clock_0_2_1"></a>Import interface wasi:clocks/[email protected].1</h2>
133+
<h2><a id="wasi_clocks_wall_clock_0_2_2"></a>Import interface wasi:clocks/[email protected].2</h2>
134134
<p>WASI Wall Clock is a clock API intended to let users query the current
135135
time. The name &quot;wall&quot; makes an analogy to a &quot;clock on the wall&quot;, which
136136
is not necessarily monotonic as it may be reset.</p>
@@ -171,7 +171,7 @@ also known as <a href="https://en.wikipedia.org/wiki/Unix_time">Unix Time</a>.</
171171
<ul>
172172
<li><a id="resolution.0"></a> <a href="#datetime"><a href="#datetime"><code>datetime</code></a></a></li>
173173
</ul>
174-
<h2><a id="wasi_random_random_0_2_1"></a>Import interface wasi:random/[email protected].1</h2>
174+
<h2><a id="wasi_random_random_0_2_2"></a>Import interface wasi:random/[email protected].2</h2>
175175
<p>WASI Random is a random data API.</p>
176176
<p>It is intended to be portable at least between Unix-family platforms and
177177
Windows.</p>
@@ -204,7 +204,7 @@ represented as a <code>u64</code>.</p>
204204
<ul>
205205
<li><a id="get_random_u64.0"></a> <code>u64</code></li>
206206
</ul>
207-
<h2><a id="wasi_io_error_0_2_1"></a>Import interface wasi:io/[email protected].1</h2>
207+
<h2><a id="wasi_io_error_0_2_2"></a>Import interface wasi:io/[email protected].2</h2>
208208
<hr />
209209
<h3>Types</h3>
210210
<h4><a id="error"></a><code>resource error</code></h4>
@@ -237,7 +237,7 @@ hazard.</p>
237237
<ul>
238238
<li><a id="method_error_to_debug_string.0"></a> <code>string</code></li>
239239
</ul>
240-
<h2><a id="wasi_io_streams_0_2_1"></a>Import interface wasi:io/[email protected].1</h2>
240+
<h2><a id="wasi_io_streams_0_2_2"></a>Import interface wasi:io/[email protected].2</h2>
241241
<p>WASI I/O is an I/O abstraction API which is currently focused on providing
242242
stream types.</p>
243243
<p>In the future, the component model is expected to add built-in stream types;
@@ -258,6 +258,8 @@ when it does, they are expected to subsume this API.</p>
258258
<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>
259259
<p>The last operation (a write or flush) failed before completion.
260260
<p>More information is available in the <a href="#error"><code>error</code></a> payload.</p>
261+
<p>After this, the stream will be closed. All future operations return
262+
<a href="#stream_error.closed"><code>stream-error::closed</code></a>.</p>
261263
</li>
262264
<li>
263265
<p><a id="stream_error.closed"></a><code>closed</code></p>
@@ -565,7 +567,7 @@ is ready for reading, before performing the <code>splice</code>.</p>
565567
<ul>
566568
<li><a id="method_output_stream_blocking_splice.0"></a> result&lt;<code>u64</code>, <a href="#stream_error"><a href="#stream_error"><code>stream-error</code></a></a>&gt;</li>
567569
</ul>
568-
<h2><a id="wasi_cli_stdout_0_2_1"></a>Import interface wasi:cli/[email protected].1</h2>
570+
<h2><a id="wasi_cli_stdout_0_2_2"></a>Import interface wasi:cli/[email protected].2</h2>
569571
<hr />
570572
<h3>Types</h3>
571573
<h4><a id="output_stream"></a><code>type output-stream</code></h4>
@@ -578,7 +580,7 @@ is ready for reading, before performing the <code>splice</code>.</p>
578580
<ul>
579581
<li><a id="get_stdout.0"></a> own&lt;<a href="#output_stream"><a href="#output_stream"><code>output-stream</code></a></a>&gt;</li>
580582
</ul>
581-
<h2><a id="wasi_cli_stderr_0_2_1"></a>Import interface wasi:cli/[email protected].1</h2>
583+
<h2><a id="wasi_cli_stderr_0_2_2"></a>Import interface wasi:cli/[email protected].2</h2>
582584
<hr />
583585
<h3>Types</h3>
584586
<h4><a id="output_stream"></a><code>type output-stream</code></h4>
@@ -591,7 +593,7 @@ is ready for reading, before performing the <code>splice</code>.</p>
591593
<ul>
592594
<li><a id="get_stderr.0"></a> own&lt;<a href="#output_stream"><a href="#output_stream"><code>output-stream</code></a></a>&gt;</li>
593595
</ul>
594-
<h2><a id="wasi_cli_stdin_0_2_1"></a>Import interface wasi:cli/[email protected].1</h2>
596+
<h2><a id="wasi_cli_stdin_0_2_2"></a>Import interface wasi:cli/[email protected].2</h2>
595597
<hr />
596598
<h3>Types</h3>
597599
<h4><a id="input_stream"></a><code>type input-stream</code></h4>
@@ -604,7 +606,7 @@ is ready for reading, before performing the <code>splice</code>.</p>
604606
<ul>
605607
<li><a id="get_stdin.0"></a> own&lt;<a href="#input_stream"><a href="#input_stream"><code>input-stream</code></a></a>&gt;</li>
606608
</ul>
607-
<h2><a id="wasi_http_types_0_2_1"></a>Import interface wasi:http/[email protected].1</h2>
609+
<h2><a id="wasi_http_types_0_2_2"></a>Import interface wasi:http/[email protected].2</h2>
608610
<p>This interface defines all of the types and methods for implementing
609611
HTTP Requests and Responses, both incoming and outgoing, as well as
610612
their headers, trailers, and bodies.</p>
@@ -1505,7 +1507,7 @@ but those will be reported by the <a href="#incoming_body"><code>incoming-body</
15051507
<ul>
15061508
<li><a id="method_future_incoming_response_get.0"></a> option&lt;result&lt;result&lt;own&lt;<a href="#incoming_response"><a href="#incoming_response"><code>incoming-response</code></a></a>&gt;, <a href="#error_code"><a href="#error_code"><code>error-code</code></a></a>&gt;&gt;&gt;</li>
15071509
</ul>
1508-
<h2><a id="wasi_http_outgoing_handler_0_2_1"></a>Import interface wasi:http/[email protected].1</h2>
1510+
<h2><a id="wasi_http_outgoing_handler_0_2_2"></a>Import interface wasi:http/[email protected].2</h2>
15091511
<p>This interface defines a handler of outgoing HTTP Requests. It should be
15101512
imported by components which wish to make HTTP Requests.</p>
15111513
<hr />

0 commit comments

Comments
 (0)