Skip to content

Commit 980ca88

Browse files
authored
release: import published 0.2.4 (#642)
1 parent 5cf84da commit 980ca88

24 files changed

+67
-48
lines changed

wasip2/cli/command.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:cli@0.2.3;
1+
package wasi:cli@0.2.4;
22

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

wasip2/cli/imports.wit

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
package wasi:cli@0.2.3;
1+
package wasi:cli@0.2.4;
22

33
@since(version = 0.2.0)
44
world imports {
55
@since(version = 0.2.0)
6-
include wasi:clocks/imports@0.2.3;
6+
include wasi:clocks/imports@0.2.4;
77
@since(version = 0.2.0)
8-
include wasi:filesystem/imports@0.2.3;
8+
include wasi:filesystem/imports@0.2.4;
99
@since(version = 0.2.0)
10-
include wasi:sockets/imports@0.2.3;
10+
include wasi:sockets/imports@0.2.4;
1111
@since(version = 0.2.0)
12-
include wasi:random/imports@0.2.3;
12+
include wasi:random/imports@0.2.4;
1313
@since(version = 0.2.0)
14-
include wasi:io/imports@0.2.3;
14+
include wasi:io/imports@0.2.4;
1515

1616
@since(version = 0.2.0)
1717
import environment;

wasip2/cli/stdio.wit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@since(version = 0.2.0)
22
interface stdin {
33
@since(version = 0.2.0)
4-
use wasi:io/streams@0.2.3.{input-stream};
4+
use wasi:io/streams@0.2.4.{input-stream};
55

66
@since(version = 0.2.0)
77
get-stdin: func() -> input-stream;
@@ -10,7 +10,7 @@ interface stdin {
1010
@since(version = 0.2.0)
1111
interface stdout {
1212
@since(version = 0.2.0)
13-
use wasi:io/streams@0.2.3.{output-stream};
13+
use wasi:io/streams@0.2.4.{output-stream};
1414

1515
@since(version = 0.2.0)
1616
get-stdout: func() -> output-stream;
@@ -19,7 +19,7 @@ interface stdout {
1919
@since(version = 0.2.0)
2020
interface stderr {
2121
@since(version = 0.2.0)
22-
use wasi:io/streams@0.2.3.{output-stream};
22+
use wasi:io/streams@0.2.4.{output-stream};
2323

2424
@since(version = 0.2.0)
2525
get-stderr: func() -> output-stream;

wasip2/clocks/monotonic-clock.wit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.3;
1+
package wasi:clocks@0.2.4;
22
/// WASI Monotonic Clock is a clock API intended to let users measure elapsed
33
/// time.
44
///
@@ -10,7 +10,7 @@ package wasi:[email protected];
1010
@since(version = 0.2.0)
1111
interface monotonic-clock {
1212
@since(version = 0.2.0)
13-
use wasi:io/poll@0.2.3.{pollable};
13+
use wasi:io/poll@0.2.4.{pollable};
1414

1515
/// An instant in time, in nanoseconds. An instant is relative to an
1616
/// unspecified initial value, and can only be compared to instances from

wasip2/clocks/timezone.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.3;
1+
package wasi:clocks@0.2.4;
22

33
@unstable(feature = clocks-timezone)
44
interface timezone {

wasip2/clocks/wall-clock.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.3;
1+
package wasi:clocks@0.2.4;
22
/// WASI Wall Clock is a clock API intended to let users query the current
33
/// time. The name "wall" makes an analogy to a "clock on the wall", which
44
/// is not necessarily monotonic as it may be reset.

wasip2/clocks/world.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.3;
1+
package wasi:clocks@0.2.4;
22

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

wasip2/filesystem/preopens.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:filesystem@0.2.3;
1+
package wasi:filesystem@0.2.4;
22

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

wasip2/filesystem/types.wit

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:filesystem@0.2.3;
1+
package wasi:filesystem@0.2.4;
22
/// WASI filesystem is a filesystem API primarily intended to let users run WASI
33
/// programs that access their files on their existing filesystems, without
44
/// significant overhead.
@@ -26,9 +26,9 @@ package wasi:[email protected];
2626
@since(version = 0.2.0)
2727
interface types {
2828
@since(version = 0.2.0)
29-
use wasi:io/streams@0.2.3.{input-stream, output-stream, error};
29+
use wasi:io/streams@0.2.4.{input-stream, output-stream, error};
3030
@since(version = 0.2.0)
31-
use wasi:clocks/wall-clock@0.2.3.{datetime};
31+
use wasi:clocks/wall-clock@0.2.4.{datetime};
3232

3333
/// File size or length of a region within a file.
3434
@since(version = 0.2.0)
@@ -508,6 +508,10 @@ interface types {
508508

509509
/// Create a hard link.
510510
///
511+
/// Fails with `error-code::no-entry` if the old path does not exist,
512+
/// with `error-code::exist` if the new path already exists, and
513+
/// `error-code::not-permitted` if the old path is not a file.
514+
///
511515
/// Note: This is similar to `linkat` in POSIX.
512516
@since(version = 0.2.0)
513517
link-at: func(

wasip2/filesystem/world.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:filesystem@0.2.3;
1+
package wasi:filesystem@0.2.4;
22

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

wasip2/http/types.wit

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ interface types {
170170
/// A `fields` may be mutable or immutable. A `fields` created using the
171171
/// constructor, `from-list`, or `clone` will be mutable, but a `fields`
172172
/// resource given by other means (including, but not limited to,
173-
/// `incoming-request.headers`, `outgoing-request.headers`) might be be
173+
/// `incoming-request.headers`, `outgoing-request.headers`) might be
174174
/// immutable. In an immutable fields, the `set`, `append`, and `delete`
175175
/// operations will fail with `header-error.immutable`.
176176
@since(version = 0.2.0)
@@ -435,6 +435,21 @@ interface types {
435435
/// other argument to `incoming-handler.handle`.
436436
@since(version = 0.2.0)
437437
resource response-outparam {
438+
/// Send an HTTP 1xx response.
439+
///
440+
/// Unlike `response-outparam.set`, this does not consume the
441+
/// `response-outparam`, allowing the guest to send an arbitrary number of
442+
/// informational responses before sending the final response using
443+
/// `response-outparam.set`.
444+
///
445+
/// This will return an `HTTP-protocol-error` if `status` is not in the
446+
/// range [100-199], or an `internal-error` if the implementation does not
447+
/// support informational responses.
448+
@unstable(feature = informational-outbound-responses)
449+
send-informational: func(
450+
status: u16,
451+
headers: headers
452+
) -> result<_, error-code>;
438453

439454
/// Set the value of the `response-outparam` to either send a response,
440455
/// or indicate an error.

wasip2/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.3;
1+
package wasi:io@0.2.4;
22

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

wasip2/io/poll.wit

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.3;
1+
package wasi:io@0.2.4;
22

33
/// A poll API intended to let users wait for I/O events on multiple handles
44
/// at once.
@@ -8,19 +8,19 @@ interface poll {
88
@since(version = 0.2.0)
99
resource pollable {
1010

11-
/// Return the readiness of a pollable. This function never blocks.
12-
///
13-
/// Returns `true` when the pollable is ready, and `false` otherwise.
14-
@since(version = 0.2.0)
15-
ready: func() -> bool;
11+
/// Return the readiness of a pollable. This function never blocks.
12+
///
13+
/// Returns `true` when the pollable is ready, and `false` otherwise.
14+
@since(version = 0.2.0)
15+
ready: func() -> bool;
1616

17-
/// `block` returns immediately if the pollable is ready, and otherwise
18-
/// blocks until ready.
19-
///
20-
/// This function is equivalent to calling `poll.poll` on a list
21-
/// containing only this pollable.
22-
@since(version = 0.2.0)
23-
block: func();
17+
/// `block` returns immediately if the pollable is ready, and otherwise
18+
/// blocks until ready.
19+
///
20+
/// This function is equivalent to calling `poll.poll` on a list
21+
/// containing only this pollable.
22+
@since(version = 0.2.0)
23+
block: func();
2424
}
2525

2626
/// Poll for completion on a set of pollables.

wasip2/io/streams.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.3;
1+
package wasi:io@0.2.4;
22

33
/// WASI I/O is an I/O abstraction API which is currently focused on providing
44
/// stream types.

wasip2/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.3;
1+
package wasi:io@0.2.4;
22

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

wasip2/random/insecure-seed.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.3;
1+
package wasi:random@0.2.4;
22
/// The insecure-seed interface for seeding hash-map DoS resistance.
33
///
44
/// It is intended to be portable at least between Unix-family platforms and

wasip2/random/insecure.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.3;
1+
package wasi:random@0.2.4;
22
/// The insecure interface for insecure pseudo-random numbers.
33
///
44
/// It is intended to be portable at least between Unix-family platforms and

wasip2/random/random.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.3;
1+
package wasi:random@0.2.4;
22
/// WASI Random is a random data API.
33
///
44
/// It is intended to be portable at least between Unix-family platforms and

wasip2/random/world.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.3;
1+
package wasi:random@0.2.4;
22

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

wasip2/sockets/ip-name-lookup.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@since(version = 0.2.0)
22
interface ip-name-lookup {
33
@since(version = 0.2.0)
4-
use wasi:io/poll@0.2.3.{pollable};
4+
use wasi:io/poll@0.2.4.{pollable};
55
@since(version = 0.2.0)
66
use network.{network, error-code, ip-address};
77

wasip2/sockets/network.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@since(version = 0.2.0)
22
interface network {
33
@unstable(feature = network-error-code)
4-
use wasi:io/error@0.2.3.{error};
4+
use wasi:io/error@0.2.4.{error};
55

66
/// An opaque resource that represents access to (a subset of) the network.
77
/// This enables context-based security for networking.

wasip2/sockets/tcp.wit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@since(version = 0.2.0)
22
interface tcp {
33
@since(version = 0.2.0)
4-
use wasi:io/streams@0.2.3.{input-stream, output-stream};
4+
use wasi:io/streams@0.2.4.{input-stream, output-stream};
55
@since(version = 0.2.0)
6-
use wasi:io/poll@0.2.3.{pollable};
6+
use wasi:io/poll@0.2.4.{pollable};
77
@since(version = 0.2.0)
8-
use wasi:clocks/monotonic-clock@0.2.3.{duration};
8+
use wasi:clocks/monotonic-clock@0.2.4.{duration};
99
@since(version = 0.2.0)
1010
use network.{network, error-code, ip-socket-address, ip-address-family};
1111

wasip2/sockets/udp.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@since(version = 0.2.0)
22
interface udp {
33
@since(version = 0.2.0)
4-
use wasi:io/poll@0.2.3.{pollable};
4+
use wasi:io/poll@0.2.4.{pollable};
55
@since(version = 0.2.0)
66
use network.{network, error-code, ip-socket-address, ip-address-family};
77

wasip2/sockets/world.wit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:sockets@0.2.3;
1+
package wasi:sockets@0.2.4;
22

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

0 commit comments

Comments
 (0)