Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 61 additions & 61 deletions proposals/cli/command.md

Large diffs are not rendered by default.

124 changes: 62 additions & 62 deletions proposals/cli/imports.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion proposals/cli/wit/command.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:cli@0.2.8;
package wasi:cli@0.2.9;

@since(version = 0.2.0)
world command {
Expand Down
20 changes: 10 additions & 10 deletions proposals/cli/wit/deps.lock
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
[clocks]
path = "../../clocks/wit"
sha256 = "be1d8c61e2544e2b48d902c60df73577e293349063344ce752cda4d323f8b913"
sha512 = "0fd7962c62b135da0e584c2b58a55147bf09873848b0bb5bd3913019bc3f8d4b5969fbd6f7f96fd99a015efaf562a3eeafe3bc13049f8572a6e13ef9ef0e7e75"
sha256 = "b9fe6015a69eec7ce906a2fe9e6422e09d84e5905f8b2c48c9f9db4932ae6336"
sha512 = "fc16682461807392565b7f7a3bc01d233e794a8dd82bd5de9263e608c96cc3aa754d0f5d1e9c1573faece8c7ffd3a87b7290bbcdf6d515478c5bcf1b0cb9e5c7"

[filesystem]
path = "../../filesystem/wit"
sha256 = "57c2e5e40c57d54a2eacb55d8855d2963a6c0b33971a3620c1468b732233d593"
sha512 = "11d1dee738bea1fdd15f5cc07ea10bfb9953a4e84361bbdc2c1051f9520463329ec839caffe0e5cf22870584846f9bfe627c1b77ee4b555fcc990b8106791c68"
sha256 = "840d7b3c0a3cac44f90fbc875f9772788220cbfd63881570b504b614087d2f76"
sha512 = "c9266a095e4a0f6cc4e071d7da54ae88d9c70128681fd66fdf5ee626f35636db8afbabdb73ce2b28959e107c750abbc014aec29423e7363614a180d3c9075776"

[io]
path = "../../io/wit"
sha256 = "ffac709ff8fb80c6decb60be7db656fac0837e0ef60c590baac1f30da6df7ea9"
sha512 = "199614903d351845872d2e44a9a816f456593dd24823e90829a2cfe4c19047dadc1bb2d5feec48a7e47be1cbbdb491ea7021c710ec6e957045ebea769501b92a"
sha256 = "3699f94c981bacfd4034e92d47d0c888befb9297c54f6082bd37e83c86e5796e"
sha512 = "fd3fdd9d6b0df1ee8846aaaba469942e110c6ffc935d331651e338ff9c75b453748d626fffeee9a6026f1ed90d94d8854887e209c5832acc26da6385d189db6b"

[random]
path = "../../random/wit"
sha256 = "febd6f75dec1fa733b8e25c1cdee4de9acd922ddf755a192d85f479b1f96b445"
sha512 = "1689d2eee3c64b9fc91faaf43741ff95f343b05acc758342dbf3aa86830de1ec66b4bcd0fe22bf1f77abc4a1feeaae90cdc2c06eedc30952a6667f70edca7d8f"
sha256 = "4b4ea94130dba45cc9a86eea05778d9d456cfa8c32a568ef92e8525e2300e233"
sha512 = "141e730abe6d167bfa675d184ea9601f33e0beb2104ed3312b1f0d7239f7e80d5c5eab3b8b926fc9ac5f959ae479245aa4af56c74babfad3d6208951a5b2650b"

[sockets]
path = "../../sockets/wit"
sha256 = "e82bb0502324f44ef22f6fdadec51f4963faf8ccd21187c37397ea872c0548c0"
sha512 = "b8139db2b26a95d6948e345cf036497883943134ea832abfabd7267682d9f84b4c86ff38fc771125f1a8e2bcd237ea0a731d83bf22df9d78f19e452061227d77"
sha256 = "996840e548a6fddda8ef47863926a7fa86179be5aa8a81edadb2ea9a2dc526c8"
sha512 = "0698ec81c26ea76939029fc53104c16bd68a1e1a5144863ce041bee0b5a8a0ed31bfa921118e45d262c1d4e882f8014a8aeacc31825b8c0b7d54d5a1c2c51e97"
12 changes: 6 additions & 6 deletions proposals/cli/wit/imports.wit
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package wasi:cli@0.2.8;
package wasi:cli@0.2.9;

@since(version = 0.2.0)
world imports {
@since(version = 0.2.0)
include wasi:clocks/imports@0.2.8;
include wasi:clocks/imports@0.2.9;
@since(version = 0.2.0)
include wasi:filesystem/imports@0.2.8;
include wasi:filesystem/imports@0.2.9;
@since(version = 0.2.0)
include wasi:sockets/imports@0.2.8;
include wasi:sockets/imports@0.2.9;
@since(version = 0.2.0)
include wasi:random/imports@0.2.8;
include wasi:random/imports@0.2.9;
@since(version = 0.2.0)
include wasi:io/imports@0.2.8;
include wasi:io/imports@0.2.9;

@since(version = 0.2.0)
import environment;
Expand Down
6 changes: 3 additions & 3 deletions proposals/cli/wit/stdio.wit
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@since(version = 0.2.0)
interface stdin {
@since(version = 0.2.0)
use wasi:io/streams@0.2.8.{input-stream};
use wasi:io/streams@0.2.9.{input-stream};

@since(version = 0.2.0)
get-stdin: func() -> input-stream;
Expand All @@ -10,7 +10,7 @@ interface stdin {
@since(version = 0.2.0)
interface stdout {
@since(version = 0.2.0)
use wasi:io/streams@0.2.8.{output-stream};
use wasi:io/streams@0.2.9.{output-stream};

@since(version = 0.2.0)
get-stdout: func() -> output-stream;
Expand All @@ -19,7 +19,7 @@ interface stdout {
@since(version = 0.2.0)
interface stderr {
@since(version = 0.2.0)
use wasi:io/streams@0.2.8.{output-stream};
use wasi:io/streams@0.2.9.{output-stream};

@since(version = 0.2.0)
get-stderr: func() -> output-stream;
Expand Down
16 changes: 8 additions & 8 deletions proposals/clocks/imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<ul>
<li>Imports:
<ul>
<li>interface <a href="#wasi_io_poll_0_2_8"><code>wasi:io/poll@0.2.8</code></a></li>
<li>interface <a href="#wasi_clocks_monotonic_clock_0_2_8"><code>wasi:clocks/monotonic-clock@0.2.8</code></a></li>
<li>interface <a href="#wasi_clocks_wall_clock_0_2_8"><code>wasi:clocks/wall-clock@0.2.8</code></a></li>
<li>interface <a href="#wasi_clocks_timezone_0_2_8"><code>wasi:clocks/timezone@0.2.8</code></a></li>
<li>interface <a href="#wasi_io_poll_0_2_9"><code>wasi:io/poll@0.2.9</code></a></li>
<li>interface <a href="#wasi_clocks_monotonic_clock_0_2_9"><code>wasi:clocks/monotonic-clock@0.2.9</code></a></li>
<li>interface <a href="#wasi_clocks_wall_clock_0_2_9"><code>wasi:clocks/wall-clock@0.2.9</code></a></li>
<li>interface <a href="#wasi_clocks_timezone_0_2_9"><code>wasi:clocks/timezone@0.2.9</code></a></li>
</ul>
</li>
</ul>
<h2><a id="wasi_io_poll_0_2_8"></a>Import interface wasi:io/poll@0.2.8</h2>
<h2><a id="wasi_io_poll_0_2_9"></a>Import interface wasi:io/poll@0.2.9</h2>
<p>A poll API intended to let users wait for I/O events on multiple handles
at once.</p>
<hr />
Expand Down Expand Up @@ -62,7 +62,7 @@ being ready for I/O.</p>
<ul>
<li><a id="poll.0"></a> list&lt;<code>u32</code>&gt;</li>
</ul>
<h2><a id="wasi_clocks_monotonic_clock_0_2_8"></a>Import interface wasi:clocks/monotonic-clock@0.2.8</h2>
<h2><a id="wasi_clocks_monotonic_clock_0_2_9"></a>Import interface wasi:clocks/monotonic-clock@0.2.9</h2>
<p>WASI Monotonic Clock is a clock API intended to let users measure elapsed
time.</p>
<p>It is intended to be portable at least between Unix-family platforms and
Expand Down Expand Up @@ -125,7 +125,7 @@ elapsed from the time this function is invoked.</p>
<ul>
<li><a id="subscribe_duration.0"></a> own&lt;<a href="#pollable"><a href="#pollable"><code>pollable</code></a></a>&gt;</li>
</ul>
<h2><a id="wasi_clocks_wall_clock_0_2_8"></a>Import interface wasi:clocks/wall-clock@0.2.8</h2>
<h2><a id="wasi_clocks_wall_clock_0_2_9"></a>Import interface wasi:clocks/wall-clock@0.2.9</h2>
<p>WASI Wall Clock is a clock API intended to let users query the current
time. The name &quot;wall&quot; makes an analogy to a &quot;clock on the wall&quot;, which
is not necessarily monotonic as it may be reset.</p>
Expand Down Expand Up @@ -166,7 +166,7 @@ also known as <a href="https://en.wikipedia.org/wiki/Unix_time">Unix Time</a>.</
<ul>
<li><a id="resolution.0"></a> <a href="#datetime"><a href="#datetime"><code>datetime</code></a></a></li>
</ul>
<h2><a id="wasi_clocks_timezone_0_2_8"></a>Import interface wasi:clocks/timezone@0.2.8</h2>
<h2><a id="wasi_clocks_timezone_0_2_9"></a>Import interface wasi:clocks/timezone@0.2.9</h2>
<hr />
<h3>Types</h3>
<h4><a id="datetime"></a><code>type datetime</code></h4>
Expand Down
4 changes: 2 additions & 2 deletions proposals/clocks/wit/deps.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[io]
path = "../../io/wit"
sha256 = "ffac709ff8fb80c6decb60be7db656fac0837e0ef60c590baac1f30da6df7ea9"
sha512 = "199614903d351845872d2e44a9a816f456593dd24823e90829a2cfe4c19047dadc1bb2d5feec48a7e47be1cbbdb491ea7021c710ec6e957045ebea769501b92a"
sha256 = "3699f94c981bacfd4034e92d47d0c888befb9297c54f6082bd37e83c86e5796e"
sha512 = "fd3fdd9d6b0df1ee8846aaaba469942e110c6ffc935d331651e338ff9c75b453748d626fffeee9a6026f1ed90d94d8854887e209c5832acc26da6385d189db6b"
4 changes: 2 additions & 2 deletions proposals/clocks/wit/monotonic-clock.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:clocks@0.2.8;
package wasi:clocks@0.2.9;
/// WASI Monotonic Clock is a clock API intended to let users measure elapsed
/// time.
///
Expand All @@ -10,7 +10,7 @@ package wasi:clocks@0.2.8;
@since(version = 0.2.0)
interface monotonic-clock {
@since(version = 0.2.0)
use wasi:io/poll@0.2.8.{pollable};
use wasi:io/poll@0.2.9.{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 Down
2 changes: 1 addition & 1 deletion proposals/clocks/wit/timezone.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:clocks@0.2.8;
package wasi:clocks@0.2.9;

@unstable(feature = clocks-timezone)
interface timezone {
Expand Down
2 changes: 1 addition & 1 deletion proposals/clocks/wit/wall-clock.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:clocks@0.2.8;
package wasi:clocks@0.2.9;
/// 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
2 changes: 1 addition & 1 deletion proposals/clocks/wit/world.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:clocks@0.2.8;
package wasi:clocks@0.2.9;

@since(version = 0.2.0)
world imports {
Expand Down
30 changes: 15 additions & 15 deletions proposals/filesystem/imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@
<ul>
<li>Imports:
<ul>
<li>interface <a href="#wasi_io_error_0_2_8"><code>wasi:io/error@0.2.8</code></a></li>
<li>interface <a href="#wasi_io_poll_0_2_8"><code>wasi:io/poll@0.2.8</code></a></li>
<li>interface <a href="#wasi_io_streams_0_2_8"><code>wasi:io/streams@0.2.8</code></a></li>
<li>interface <a href="#wasi_clocks_wall_clock_0_2_8"><code>wasi:clocks/wall-clock@0.2.8</code></a></li>
<li>interface <a href="#wasi_filesystem_types_0_2_8"><code>wasi:filesystem/types@0.2.8</code></a></li>
<li>interface <a href="#wasi_filesystem_preopens_0_2_8"><code>wasi:filesystem/preopens@0.2.8</code></a></li>
<li>interface <a href="#wasi_io_error_0_2_9"><code>wasi:io/error@0.2.9</code></a></li>
<li>interface <a href="#wasi_io_poll_0_2_9"><code>wasi:io/poll@0.2.9</code></a></li>
<li>interface <a href="#wasi_io_streams_0_2_9"><code>wasi:io/streams@0.2.9</code></a></li>
<li>interface <a href="#wasi_clocks_wall_clock_0_2_9"><code>wasi:clocks/wall-clock@0.2.9</code></a></li>
<li>interface <a href="#wasi_filesystem_types_0_2_9"><code>wasi:filesystem/types@0.2.9</code></a></li>
<li>interface <a href="#wasi_filesystem_preopens_0_2_9"><code>wasi:filesystem/preopens@0.2.9</code></a></li>
</ul>
</li>
</ul>
<h2><a id="wasi_io_error_0_2_8"></a>Import interface wasi:io/error@0.2.8</h2>
<h2><a id="wasi_io_error_0_2_9"></a>Import interface wasi:io/error@0.2.9</h2>
<hr />
<h3>Types</h3>
<h4><a id="error"></a><code>resource error</code></h4>
<p>A resource which represents some error information.</p>
<p>The only method provided by this resource is <code>to-debug-string</code>,
which provides some human-readable information about the error.</p>
<p>In the <code>wasi:io</code> package, this resource is returned through the
<code>wasi:io/streams/stream-error</code> type.</p>
<code>wasi:io/streams.stream-error</code> type.</p>
<p>To provide more specific error information, other interfaces may
offer functions to &quot;downcast&quot; this error into more specific types. For example,
errors returned from streams derived from filesystem types can be described using
the filesystem's own error-code type. This is done using the function
<code>wasi:filesystem/types/filesystem-error-code</code>, which takes a <code>borrow&lt;error&gt;</code>
parameter and returns an <code>option&lt;wasi:filesystem/types/error-code&gt;</code>.</p>
<code>wasi:filesystem/types.filesystem-error-code</code>, which takes a <code>borrow&lt;error&gt;</code>
parameter and returns an <code>option&lt;wasi:filesystem/types.error-code&gt;</code>.</p>
<h2>The set of functions which can &quot;downcast&quot; an <a href="#error"><code>error</code></a> into a more
concrete type is open.</h2>
<h3>Functions</h3>
Expand All @@ -44,7 +44,7 @@ hazard.</p>
<ul>
<li><a id="method_error_to_debug_string.0"></a> <code>string</code></li>
</ul>
<h2><a id="wasi_io_poll_0_2_8"></a>Import interface wasi:io/poll@0.2.8</h2>
<h2><a id="wasi_io_poll_0_2_9"></a>Import interface wasi:io/poll@0.2.9</h2>
<p>A poll API intended to let users wait for I/O events on multiple handles
at once.</p>
<hr />
Expand Down Expand Up @@ -97,7 +97,7 @@ being ready for I/O.</p>
<ul>
<li><a id="poll.0"></a> list&lt;<code>u32</code>&gt;</li>
</ul>
<h2><a id="wasi_io_streams_0_2_8"></a>Import interface wasi:io/streams@0.2.8</h2>
<h2><a id="wasi_io_streams_0_2_9"></a>Import interface wasi:io/streams@0.2.9</h2>
<p>WASI I/O is an I/O abstraction API which is currently focused on providing
stream types.</p>
<p>In the future, the component model is expected to add built-in stream types;
Expand Down Expand Up @@ -399,7 +399,7 @@ is ready for reading, before performing the <code>splice</code>.</p>
<ul>
<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>
</ul>
<h2><a id="wasi_clocks_wall_clock_0_2_8"></a>Import interface wasi:clocks/wall-clock@0.2.8</h2>
<h2><a id="wasi_clocks_wall_clock_0_2_9"></a>Import interface wasi:clocks/wall-clock@0.2.9</h2>
<p>WASI Wall Clock is a clock API intended to let users query the current
time. The name &quot;wall&quot; makes an analogy to a &quot;clock on the wall&quot;, which
is not necessarily monotonic as it may be reset.</p>
Expand Down Expand Up @@ -440,7 +440,7 @@ also known as <a href="https://en.wikipedia.org/wiki/Unix_time">Unix Time</a>.</
<ul>
<li><a id="resolution.0"></a> <a href="#datetime"><a href="#datetime"><code>datetime</code></a></a></li>
</ul>
<h2><a id="wasi_filesystem_types_0_2_8"></a>Import interface wasi:filesystem/types@0.2.8</h2>
<h2><a id="wasi_filesystem_types_0_2_9"></a>Import interface wasi:filesystem/types@0.2.9</h2>
<p>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.</p>
Expand Down Expand Up @@ -1318,7 +1318,7 @@ errors are filesystem-related errors.</p>
<ul>
<li><a id="filesystem_error_code.0"></a> option&lt;<a href="#error_code"><a href="#error_code"><code>error-code</code></a></a>&gt;</li>
</ul>
<h2><a id="wasi_filesystem_preopens_0_2_8"></a>Import interface wasi:filesystem/preopens@0.2.8</h2>
<h2><a id="wasi_filesystem_preopens_0_2_9"></a>Import interface wasi:filesystem/preopens@0.2.9</h2>
<hr />
<h3>Types</h3>
<h4><a id="descriptor"></a><code>type descriptor</code></h4>
Expand Down
8 changes: 4 additions & 4 deletions proposals/filesystem/wit/deps.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[clocks]
path = "../../clocks/wit"
sha256 = "be1d8c61e2544e2b48d902c60df73577e293349063344ce752cda4d323f8b913"
sha512 = "0fd7962c62b135da0e584c2b58a55147bf09873848b0bb5bd3913019bc3f8d4b5969fbd6f7f96fd99a015efaf562a3eeafe3bc13049f8572a6e13ef9ef0e7e75"
sha256 = "b9fe6015a69eec7ce906a2fe9e6422e09d84e5905f8b2c48c9f9db4932ae6336"
sha512 = "fc16682461807392565b7f7a3bc01d233e794a8dd82bd5de9263e608c96cc3aa754d0f5d1e9c1573faece8c7ffd3a87b7290bbcdf6d515478c5bcf1b0cb9e5c7"

[io]
path = "../../io/wit"
sha256 = "ffac709ff8fb80c6decb60be7db656fac0837e0ef60c590baac1f30da6df7ea9"
sha512 = "199614903d351845872d2e44a9a816f456593dd24823e90829a2cfe4c19047dadc1bb2d5feec48a7e47be1cbbdb491ea7021c710ec6e957045ebea769501b92a"
sha256 = "3699f94c981bacfd4034e92d47d0c888befb9297c54f6082bd37e83c86e5796e"
sha512 = "fd3fdd9d6b0df1ee8846aaaba469942e110c6ffc935d331651e338ff9c75b453748d626fffeee9a6026f1ed90d94d8854887e209c5832acc26da6385d189db6b"
2 changes: 1 addition & 1 deletion proposals/filesystem/wit/preopens.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:filesystem@0.2.8;
package wasi:filesystem@0.2.9;

@since(version = 0.2.0)
interface preopens {
Expand Down
6 changes: 3 additions & 3 deletions proposals/filesystem/wit/types.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:filesystem@0.2.8;
package wasi:filesystem@0.2.9;
/// 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:filesystem@0.2.8;
@since(version = 0.2.0)
interface types {
@since(version = 0.2.0)
use wasi:io/streams@0.2.8.{input-stream, output-stream, error};
use wasi:io/streams@0.2.9.{input-stream, output-stream, error};
@since(version = 0.2.0)
use wasi:clocks/wall-clock@0.2.8.{datetime};
use wasi:clocks/wall-clock@0.2.9.{datetime};

/// File size or length of a region within a file.
@since(version = 0.2.0)
Expand Down
2 changes: 1 addition & 1 deletion proposals/filesystem/wit/world.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:filesystem@0.2.8;
package wasi:filesystem@0.2.9;

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