generated from WebAssembly/wasi-proposal-template
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from WebAssembly/revert-71-pch/rc-2023-11-10
Revert " set wasi:sockets package version to 0.2.0-rc-2023-11-10"
- Loading branch information
Showing
10 changed files
with
66 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,19 @@ | |
<ul> | ||
<li>Imports: | ||
<ul> | ||
<li>interface <a href="#wasi:sockets_network_0.2.0_rc_2023_11_10"><code>wasi:sockets/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi:sockets_instance_network_0.2.0_rc_2023_11_10"><code>wasi:sockets/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi:io_poll_0.2.0_rc_2023_11_10"><code>wasi:io/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi:sockets_udp_0.2.0_rc_2023_11_10"><code>wasi:sockets/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi:sockets_udp_create_socket_0.2.0_rc_2023_11_10"><code>wasi:sockets/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi:io_error_0.2.0_rc_2023_11_10"><code>wasi:io/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi:io_streams_0.2.0_rc_2023_11_10"><code>wasi:io/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi:sockets_tcp_0.2.0_rc_2023_11_10"><code>wasi:sockets/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi:sockets_tcp_create_socket_0.2.0_rc_2023_11_10"><code>wasi:sockets/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi:sockets_ip_name_lookup_0.2.0_rc_2023_11_10"><code>wasi:sockets/[email protected]</code></a></li> | ||
<li>interface <a href="#wasi:sockets_network"><code>wasi:sockets/network</code></a></li> | ||
<li>interface <a href="#wasi:sockets_instance_network"><code>wasi:sockets/instance-network</code></a></li> | ||
<li>interface <a href="#wasi:io_poll"><code>wasi:io/poll</code></a></li> | ||
<li>interface <a href="#wasi:sockets_udp"><code>wasi:sockets/udp</code></a></li> | ||
<li>interface <a href="#wasi:sockets_udp_create_socket"><code>wasi:sockets/udp-create-socket</code></a></li> | ||
<li>interface <a href="#wasi:io_streams"><code>wasi:io/streams</code></a></li> | ||
<li>interface <a href="#wasi:sockets_tcp"><code>wasi:sockets/tcp</code></a></li> | ||
<li>interface <a href="#wasi:sockets_tcp_create_socket"><code>wasi:sockets/tcp-create-socket</code></a></li> | ||
<li>interface <a href="#wasi:sockets_ip_name_lookup"><code>wasi:sockets/ip-name-lookup</code></a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<h2><a name="wasi:sockets_network_0.2.0_rc_2023_11_10">Import interface wasi:sockets/network@0.2.0-rc-2023-11-10</a></h2> | ||
<h2><a name="wasi:sockets_network">Import interface wasi:sockets/network</a></h2> | ||
<hr /> | ||
<h3>Types</h3> | ||
<h4><a name="network"><code>resource network</code></a></h4> | ||
|
@@ -226,7 +225,7 @@ combined with a couple of errors that are always possible:</p> | |
<li><a name="ip_socket_address.ipv4"><code>ipv4</code></a>: <a href="#ipv4_socket_address"><a href="#ipv4_socket_address"><code>ipv4-socket-address</code></a></a></li> | ||
<li><a name="ip_socket_address.ipv6"><code>ipv6</code></a>: <a href="#ipv6_socket_address"><a href="#ipv6_socket_address"><code>ipv6-socket-address</code></a></a></li> | ||
</ul> | ||
<h2><a name="wasi:sockets_instance_network_0.2.0_rc_2023_11_10">Import interface wasi:sockets/instance-network@0.2.0-rc-2023-11-10</a></h2> | ||
<h2><a name="wasi:sockets_instance_network">Import interface wasi:sockets/instance-network</a></h2> | ||
<p>This interface provides a value-export of the default network handle..</p> | ||
<hr /> | ||
<h3>Types</h3> | ||
|
@@ -241,7 +240,7 @@ combined with a couple of errors that are always possible:</p> | |
<ul> | ||
<li><a name="instance_network.0"></a> own<<a href="#network"><a href="#network"><code>network</code></a></a>></li> | ||
</ul> | ||
<h2><a name="wasi:io_poll_0.2.0_rc_2023_11_10">Import interface wasi:io/poll@0.2.0-rc-2023-11-10</a></h2> | ||
<h2><a name="wasi:io_poll">Import interface wasi:io/poll</a></h2> | ||
<p>A poll API intended to let users wait for I/O events on multiple handles | ||
at once.</p> | ||
<hr /> | ||
|
@@ -291,7 +290,7 @@ being reaedy for I/O.</p> | |
<ul> | ||
<li><a name="poll.0"></a> list<<code>u32</code>></li> | ||
</ul> | ||
<h2><a name="wasi:sockets_udp_0.2.0_rc_2023_11_10">Import interface wasi:sockets/udp@0.2.0-rc-2023-11-10</a></h2> | ||
<h2><a name="wasi:sockets_udp">Import interface wasi:sockets/udp</a></h2> | ||
<hr /> | ||
<h3>Types</h3> | ||
<h4><a name="pollable"><code>type pollable</code></a></h4> | ||
|
@@ -653,7 +652,7 @@ It's planned to be removed when <code>future</code> is natively supported in Pre | |
<ul> | ||
<li><a name="method_udp_socket.subscribe.0"></a> own<<a href="#pollable"><a href="#pollable"><code>pollable</code></a></a>></li> | ||
</ul> | ||
<h2><a name="wasi:sockets_udp_create_socket_0.2.0_rc_2023_11_10">Import interface wasi:sockets/udp-create-socket@0.2.0-rc-2023-11-10</a></h2> | ||
<h2><a name="wasi:sockets_udp_create_socket">Import interface wasi:sockets/udp-create-socket</a></h2> | ||
<hr /> | ||
<h3>Types</h3> | ||
<h4><a name="network"><code>type network</code></a></h4> | ||
|
@@ -698,41 +697,18 @@ the socket is effectively an in-memory configuration object, unable to communica | |
<ul> | ||
<li><a name="create_udp_socket.0"></a> result<own<<a href="#udp_socket"><a href="#udp_socket"><code>udp-socket</code></a></a>>, <a href="#error_code"><a href="#error_code"><code>error-code</code></a></a>></li> | ||
</ul> | ||
<h2><a name="wasi:io_error_0.2.0_rc_2023_11_10">Import interface wasi:io/[email protected]</a></h2> | ||
<hr /> | ||
<h3>Types</h3> | ||
<h4><a name="error"><code>resource error</code></a></h4> | ||
<hr /> | ||
<h3>Functions</h3> | ||
<h4><a name="method_error.to_debug_string"><code>[method]error.to-debug-string: func</code></a></h4> | ||
<p>Returns a string that is suitable to assist humans in debugging | ||
this error.</p> | ||
<p>WARNING: The returned string should not be consumed mechanically! | ||
It may change across platforms, hosts, or other implementation | ||
details. Parsing this string is a major platform-compatibility | ||
hazard.</p> | ||
<h5>Params</h5> | ||
<ul> | ||
<li><a name="method_error.to_debug_string.self"><code>self</code></a>: borrow<<a href="#error"><a href="#error"><code>error</code></a></a>></li> | ||
</ul> | ||
<h5>Return values</h5> | ||
<ul> | ||
<li><a name="method_error.to_debug_string.0"></a> <code>string</code></li> | ||
</ul> | ||
<h2><a name="wasi:io_streams_0.2.0_rc_2023_11_10">Import interface wasi:io/[email protected]</a></h2> | ||
<h2><a name="wasi:io_streams">Import interface wasi:io/streams</a></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; | ||
when it does, they are expected to subsume this API.</p> | ||
<hr /> | ||
<h3>Types</h3> | ||
<h4><a name="error"><code>type error</code></a></h4> | ||
<p><a href="#error"><a href="#error"><code>error</code></a></a></p> | ||
<p> | ||
#### <a name="pollable">`type pollable`</a> | ||
[`pollable`](#pollable) | ||
<h4><a name="pollable"><code>type pollable</code></a></h4> | ||
<p><a href="#pollable"><a href="#pollable"><code>pollable</code></a></a></p> | ||
<p> | ||
#### <a name="stream_error">`variant stream-error`</a> | ||
#### <a name="error">`resource error`</a> | ||
<h4><a name="stream_error"><code>variant stream-error</code></a></h4> | ||
<p>An error for input-stream and output-stream operations.</p> | ||
<h5>Variant Cases</h5> | ||
<ul> | ||
|
@@ -752,6 +728,20 @@ future operations. | |
<h4><a name="output_stream"><code>resource output-stream</code></a></h4> | ||
<hr /> | ||
<h3>Functions</h3> | ||
<h4><a name="method_error.to_debug_string"><code>[method]error.to-debug-string: func</code></a></h4> | ||
<p>Returns a string that's suitable to assist humans in debugging this | ||
error.</p> | ||
<p>The returned string will change across platforms and hosts which | ||
means that parsing it, for example, would be a | ||
platform-compatibility hazard.</p> | ||
<h5>Params</h5> | ||
<ul> | ||
<li><a name="method_error.to_debug_string.self"><code>self</code></a>: borrow<<a href="#error"><a href="#error"><code>error</code></a></a>></li> | ||
</ul> | ||
<h5>Return values</h5> | ||
<ul> | ||
<li><a name="method_error.to_debug_string.0"></a> <code>string</code></li> | ||
</ul> | ||
<h4><a name="method_input_stream.read"><code>[method]input-stream.read: func</code></a></h4> | ||
<p>Perform a non-blocking read from the stream.</p> | ||
<p>This function returns a list of bytes containing the read data, | ||
|
@@ -1022,7 +1012,7 @@ is ready for reading, before performing the <code>splice</code>.</p> | |
<ul> | ||
<li><a name="method_output_stream.blocking_splice.0"></a> result<<code>u64</code>, <a href="#stream_error"><a href="#stream_error"><code>stream-error</code></a></a>></li> | ||
</ul> | ||
<h2><a name="wasi:sockets_tcp_0.2.0_rc_2023_11_10">Import interface wasi:sockets/tcp@0.2.0-rc-2023-11-10</a></h2> | ||
<h2><a name="wasi:sockets_tcp">Import interface wasi:sockets/tcp</a></h2> | ||
<hr /> | ||
<h3>Types</h3> | ||
<h4><a name="input_stream"><code>type input-stream</code></a></h4> | ||
|
@@ -1502,7 +1492,7 @@ operations on the <a href="#output_stream"><code>output-stream</code></a> associ | |
<ul> | ||
<li><a name="method_tcp_socket.shutdown.0"></a> result<_, <a href="#error_code"><a href="#error_code"><code>error-code</code></a></a>></li> | ||
</ul> | ||
<h2><a name="wasi:sockets_tcp_create_socket_0.2.0_rc_2023_11_10">Import interface wasi:sockets/tcp-create-socket@0.2.0-rc-2023-11-10</a></h2> | ||
<h2><a name="wasi:sockets_tcp_create_socket">Import interface wasi:sockets/tcp-create-socket</a></h2> | ||
<hr /> | ||
<h3>Types</h3> | ||
<h4><a name="network"><code>type network</code></a></h4> | ||
|
@@ -1547,7 +1537,7 @@ is called, the socket is effectively an in-memory configuration object, unable t | |
<ul> | ||
<li><a name="create_tcp_socket.0"></a> result<own<<a href="#tcp_socket"><a href="#tcp_socket"><code>tcp-socket</code></a></a>>, <a href="#error_code"><a href="#error_code"><code>error-code</code></a></a>></li> | ||
</ul> | ||
<h2><a name="wasi:sockets_ip_name_lookup_0.2.0_rc_2023_11_10">Import interface wasi:sockets/ip-name-lookup@0.2.0-rc-2023-11-10</a></h2> | ||
<h2><a name="wasi:sockets_ip_name_lookup">Import interface wasi:sockets/ip-name-lookup</a></h2> | ||
<hr /> | ||
<h3>Types</h3> | ||
<h4><a name="pollable"><code>type pollable</code></a></h4> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[io] | ||
url = "https://github.com/WebAssembly/wasi-io/archive/main.tar.gz" | ||
sha256 = "f2e6127b235c37c06be675a904d6acf08db953ea688d78c42892c6ad3bd194e4" | ||
sha512 = "32feefbc115c34bf6968cb6e9dc15e755698ee90648e5a5d84448917c36a318bd61b401195eb64330e2475e1d098bfb8dee1440d594a68e0797748762bd84ae5" | ||
sha256 = "fb76f4449eea54d06b56fc6a7ca988da51bd84a54d2021cf18da67b5e2c7ebcf" | ||
sha512 = "c005e2a91522958a9537827a49ae344e1cb39d66e85492901a86bcc7e322ba8d0a7f1a02c9b9f840c123b4ad97e297355fac98d4822536d1426d1096dd1d73ac" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package wasi:io@0.2.0-rc-2023-11-10; | ||
package wasi:io; | ||
|
||
world imports { | ||
import streams; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package wasi:sockets@0.2.0-rc-2023-11-10; | ||
package wasi:sockets; | ||
|
||
world imports { | ||
import instance-network; | ||
|