From 74790c9eb3799c0fd5baf486362d13e3fd96f7de Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
<41898282+github-actions[bot]@users.noreply.github.com>
Date: Tue, 7 Oct 2025 15:22:28 +0000
Subject: [PATCH] Update to v0.2.8
---
imports.md | 152 ++++++++++++++--------------
wit/deps.lock | 8 +-
wit/deps/clocks/monotonic-clock.wit | 9 +-
wit/deps/clocks/timezone.wit | 2 +-
wit/deps/clocks/wall-clock.wit | 2 +-
wit/deps/clocks/world.wit | 2 +-
wit/deps/io/error.wit | 2 +-
wit/deps/io/poll.wit | 2 +-
wit/deps/io/streams.wit | 2 +-
wit/deps/io/world.wit | 2 +-
wit/ip-name-lookup.wit | 2 +-
wit/network.wit | 2 +-
wit/tcp.wit | 6 +-
wit/udp.wit | 2 +-
wit/world.wit | 2 +-
15 files changed, 103 insertions(+), 94 deletions(-)
diff --git a/imports.md b/imports.md
index 3908305..441464a 100644
--- a/imports.md
+++ b/imports.md
@@ -2,21 +2,21 @@
-Import interface wasi:io/error@0.2.7
+Import interface wasi:io/error@0.2.8
Types
resource error
@@ -49,13 +49,13 @@ hazard.
-Import interface wasi:sockets/network@0.2.7
+Import interface wasi:sockets/network@0.2.8
Types
type error
error
-#### `resource network`
+
resource network
An opaque resource that represents access to (a subset of) the network.
This enables context-based security for networking.
There is no need for this to map 1:1 to a physical network interface.
@@ -264,14 +264,14 @@ errors are network-related errors.
-Import interface wasi:sockets/instance-network@0.2.7
+Import interface wasi:sockets/instance-network@0.2.8
This interface provides a value-export of the default network handle..
Types
type network
network
-----
+
Functions
instance-network: func
Get a handle to the default network.
@@ -279,7 +279,7 @@ errors are network-related errors.
-Import interface wasi:io/poll@0.2.7
+Import interface wasi:io/poll@0.2.8
A poll API intended to let users wait for I/O events on multiple handles
at once.
@@ -332,25 +332,25 @@ being ready for I/O.
-Import interface wasi:sockets/udp@0.2.7
+Import interface wasi:sockets/udp@0.2.8
Types
type pollable
pollable
-#### `type network`
-[`network`](#network)
+
type network
+network
-#### `type error-code`
-[`error-code`](#error_code)
+
type error-code
+error-code
-#### `type ip-socket-address`
-[`ip-socket-address`](#ip_socket_address)
+
type ip-socket-address
+ip-socket-address
-#### `type ip-address-family`
-[`ip-address-family`](#ip_address_family)
+
type ip-address-family
+ip-address-family
-#### `record incoming-datagram`
+
record incoming-datagram
A received datagram.
Record Fields
@@ -746,22 +746,22 @@ It's planned to be removed when future is natively supported in Pre
-Import interface wasi:sockets/udp-create-socket@0.2.7
+Import interface wasi:sockets/udp-create-socket@0.2.8
Types
type network
network
-#### `type error-code`
-[`error-code`](#error_code)
+
type error-code
+error-code
-#### `type ip-address-family`
-[`ip-address-family`](#ip_address_family)
+
type ip-address-family
+ip-address-family
-#### `type udp-socket`
-[`udp-socket`](#udp_socket)
+
type udp-socket
+udp-socket
-----
+
Functions
create-udp-socket: func
Create a new UDP socket.
@@ -791,7 +791,7 @@ the socket is effectively an in-memory configuration object, unable to communica
-Import interface wasi:io/streams@0.2.7
+Import interface wasi:io/streams@0.2.8
WASI I/O is an I/O abstraction API which is currently focused on providing
stream types.
In the future, the component model is expected to add built-in stream types;
@@ -801,10 +801,10 @@ when it does, they are expected to subsume this API.
type error
error
-#### `type pollable`
-[`pollable`](#pollable)
+
type pollable
+pollable
-#### `variant stream-error`
+
variant stream-error
An error for input-stream and output-stream operations.
Variant Cases
@@ -1093,7 +1093,7 @@ is ready for reading, before performing the splice.
-Import interface wasi:clocks/monotonic-clock@0.2.7
+Import interface wasi:clocks/monotonic-clock@0.2.8
WASI Monotonic Clock is a clock API intended to let users measure elapsed
time.
It is intended to be portable at least between Unix-family platforms and
@@ -1105,8 +1105,8 @@ successive reads of the clock will produce non-decreasing values.
type pollable
pollable
-#### `type instant`
-`u64`
+
type instant
+u64
An instant in time, in nanoseconds. An instant is relative to an
unspecified initial value, and can only be compared to instances from
the same monotonic-clock.
@@ -1119,6 +1119,10 @@ the same monotonic-clock.
Read the current value of the clock.
The clock is monotonic, therefore calling this function repeatedly will
produce a sequence of non-decreasing values.
+For completeness, this function traps if it's not possible to represent
+the value of the clock in an instant. Consequently, implementations
+should ensure that the starting time is low enough to avoid the
+possibility of overflow in practice.
Return values
-
instant
@@ -1152,34 +1156,34 @@ elapsed from the time this function is invoked.
-Import interface wasi:sockets/tcp@0.2.7
+Import interface wasi:sockets/tcp@0.2.8
Types
type input-stream
input-stream
-#### `type output-stream`
-[`output-stream`](#output_stream)
+
type output-stream
+output-stream
-#### `type pollable`
-[`pollable`](#pollable)
+
type pollable
+pollable
-#### `type duration`
-[`duration`](#duration)
+
type duration
+duration
-#### `type network`
-[`network`](#network)
+
type network
+network
-#### `type error-code`
-[`error-code`](#error_code)
+
type error-code
+error-code
-#### `type ip-socket-address`
-[`ip-socket-address`](#ip_socket_address)
+
type ip-socket-address
+ip-socket-address
-#### `type ip-address-family`
-[`ip-address-family`](#ip_address_family)
+
type ip-address-family
+ip-address-family
-#### `enum shutdown-type`
+
enum shutdown-type
Enum Cases
-
@@ -1743,22 +1747,22 @@ has no effect and returns
ok.
-Import interface wasi:sockets/tcp-create-socket@0.2.7
+Import interface wasi:sockets/tcp-create-socket@0.2.8
Types
type network
network
-#### `type error-code`
-[`error-code`](#error_code)
+
type error-code
+error-code
-#### `type ip-address-family`
-[`ip-address-family`](#ip_address_family)
+
type ip-address-family
+ip-address-family
-#### `type tcp-socket`
-[`tcp-socket`](#tcp_socket)
+
type tcp-socket
+tcp-socket
-----
+
Functions
create-tcp-socket: func
Create a new TCP socket.
@@ -1788,22 +1792,22 @@ is called, the socket is effectively an in-memory configuration object, unable t
-Import interface wasi:sockets/ip-name-lookup@0.2.7
+Import interface wasi:sockets/ip-name-lookup@0.2.8
Types
type pollable
pollable
-#### `type network`
-[`network`](#network)
+
type network
+network
-#### `type error-code`
-[`error-code`](#error_code)
+
type error-code
+error-code
-#### `type ip-address`
-[`ip-address`](#ip_address)
+
type ip-address
+ip-address
-#### `resource resolve-address-stream`
+
resource resolve-address-stream
Functions
resolve-addresses: func
diff --git a/wit/deps.lock b/wit/deps.lock
index 1d550cb..b0d60f6 100644
--- a/wit/deps.lock
+++ b/wit/deps.lock
@@ -1,9 +1,9 @@
[clocks]
url = "https://github.com/WebAssembly/wasi-clocks/archive/main.tar.gz"
-sha256 = "d0a8d048c41b566b978cd8ecd03fa51ec1f65af4c26be2f0fc9cfdd7dd6f34f3"
-sha512 = "8d1c9ddaaea70ae54376bfc02dcdd0437336fb4fc67f89763ce09540caefe84cbae89a8de3605aa7613c49188636e925047bcd150c2c60685850095fefb68b73"
+sha256 = "be1d8c61e2544e2b48d902c60df73577e293349063344ce752cda4d323f8b913"
+sha512 = "0fd7962c62b135da0e584c2b58a55147bf09873848b0bb5bd3913019bc3f8d4b5969fbd6f7f96fd99a015efaf562a3eeafe3bc13049f8572a6e13ef9ef0e7e75"
[io]
url = "https://github.com/WebAssembly/wasi-io/archive/main.tar.gz"
-sha256 = "62ae80f2e340cddbac8e94f78e6270735aea536367ecb98de5f4ac6aef66b5c4"
-sha512 = "a02a1ebd261ae884b0315b3528d1a93819ddc4b616f66c77f2bea9dd1de888208dc3b9004a553363f5e8491ea925d65ebbd0d68eaa87238316b47469a3bf97bb"
+sha256 = "9f1ad5da70f621bbd4c69e3bd90250a0c12ecfde266aa8f99684fc44bc1e7c15"
+sha512 = "6d0a9db6848f24762933d1c168a5b5b1065ba838c253ee20454afeb8dd1a049b918d25deff556083d68095dd3126ae131ac3e738774320eee5d918f5a4b5354e"
diff --git a/wit/deps/clocks/monotonic-clock.wit b/wit/deps/clocks/monotonic-clock.wit
index 98a9ad4..e60f366 100644
--- a/wit/deps/clocks/monotonic-clock.wit
+++ b/wit/deps/clocks/monotonic-clock.wit
@@ -1,4 +1,4 @@
-package wasi:clocks@0.2.7;
+package wasi:clocks@0.2.8;
/// WASI Monotonic Clock is a clock API intended to let users measure elapsed
/// time.
///
@@ -10,7 +10,7 @@ package wasi:clocks@0.2.7;
@since(version = 0.2.0)
interface monotonic-clock {
@since(version = 0.2.0)
- use wasi:io/poll@0.2.7.{pollable};
+ use wasi:io/poll@0.2.8.{pollable};
/// An instant in time, in nanoseconds. An instant is relative to an
/// unspecified initial value, and can only be compared to instances from
@@ -26,6 +26,11 @@ interface monotonic-clock {
///
/// The clock is monotonic, therefore calling this function repeatedly will
/// produce a sequence of non-decreasing values.
+ ///
+ /// For completeness, this function traps if it's not possible to represent
+ /// the value of the clock in an `instant`. Consequently, implementations
+ /// should ensure that the starting time is low enough to avoid the
+ /// possibility of overflow in practice.
@since(version = 0.2.0)
now: func() -> instant;
diff --git a/wit/deps/clocks/timezone.wit b/wit/deps/clocks/timezone.wit
index 4740bde..534814a 100644
--- a/wit/deps/clocks/timezone.wit
+++ b/wit/deps/clocks/timezone.wit
@@ -1,4 +1,4 @@
-package wasi:clocks@0.2.7;
+package wasi:clocks@0.2.8;
@unstable(feature = clocks-timezone)
interface timezone {
diff --git a/wit/deps/clocks/wall-clock.wit b/wit/deps/clocks/wall-clock.wit
index 2179b6c..3386c80 100644
--- a/wit/deps/clocks/wall-clock.wit
+++ b/wit/deps/clocks/wall-clock.wit
@@ -1,4 +1,4 @@
-package wasi:clocks@0.2.7;
+package wasi:clocks@0.2.8;
/// 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.
diff --git a/wit/deps/clocks/world.wit b/wit/deps/clocks/world.wit
index a08ff2c..1655ca8 100644
--- a/wit/deps/clocks/world.wit
+++ b/wit/deps/clocks/world.wit
@@ -1,4 +1,4 @@
-package wasi:clocks@0.2.7;
+package wasi:clocks@0.2.8;
@since(version = 0.2.0)
world imports {
diff --git a/wit/deps/io/error.wit b/wit/deps/io/error.wit
index acab3a8..dd5a1af 100644
--- a/wit/deps/io/error.wit
+++ b/wit/deps/io/error.wit
@@ -1,4 +1,4 @@
-package wasi:io@0.2.7;
+package wasi:io@0.2.8;
@since(version = 0.2.0)
interface error {
diff --git a/wit/deps/io/poll.wit b/wit/deps/io/poll.wit
index a525164..833b381 100644
--- a/wit/deps/io/poll.wit
+++ b/wit/deps/io/poll.wit
@@ -1,4 +1,4 @@
-package wasi:io@0.2.7;
+package wasi:io@0.2.8;
/// A poll API intended to let users wait for I/O events on multiple handles
/// at once.
diff --git a/wit/deps/io/streams.wit b/wit/deps/io/streams.wit
index 7ae29a3..fbb0268 100644
--- a/wit/deps/io/streams.wit
+++ b/wit/deps/io/streams.wit
@@ -1,4 +1,4 @@
-package wasi:io@0.2.7;
+package wasi:io@0.2.8;
/// WASI I/O is an I/O abstraction API which is currently focused on providing
/// stream types.
diff --git a/wit/deps/io/world.wit b/wit/deps/io/world.wit
index 73b1a6d..1cc3fce 100644
--- a/wit/deps/io/world.wit
+++ b/wit/deps/io/world.wit
@@ -1,4 +1,4 @@
-package wasi:io@0.2.7;
+package wasi:io@0.2.8;
@since(version = 0.2.0)
world imports {
diff --git a/wit/ip-name-lookup.wit b/wit/ip-name-lookup.wit
index df2735a..ecdaa84 100644
--- a/wit/ip-name-lookup.wit
+++ b/wit/ip-name-lookup.wit
@@ -1,7 +1,7 @@
@since(version = 0.2.0)
interface ip-name-lookup {
@since(version = 0.2.0)
- use wasi:io/poll@0.2.7.{pollable};
+ use wasi:io/poll@0.2.8.{pollable};
@since(version = 0.2.0)
use network.{network, error-code, ip-address};
diff --git a/wit/network.wit b/wit/network.wit
index 95df71f..75a4f7d 100644
--- a/wit/network.wit
+++ b/wit/network.wit
@@ -1,7 +1,7 @@
@since(version = 0.2.0)
interface network {
@unstable(feature = network-error-code)
- use wasi:io/error@0.2.7.{error};
+ use wasi:io/error@0.2.8.{error};
/// An opaque resource that represents access to (a subset of) the network.
/// This enables context-based security for networking.
diff --git a/wit/tcp.wit b/wit/tcp.wit
index 104d9aa..9b5552d 100644
--- a/wit/tcp.wit
+++ b/wit/tcp.wit
@@ -1,11 +1,11 @@
@since(version = 0.2.0)
interface tcp {
@since(version = 0.2.0)
- use wasi:io/streams@0.2.7.{input-stream, output-stream};
+ use wasi:io/streams@0.2.8.{input-stream, output-stream};
@since(version = 0.2.0)
- use wasi:io/poll@0.2.7.{pollable};
+ use wasi:io/poll@0.2.8.{pollable};
@since(version = 0.2.0)
- use wasi:clocks/monotonic-clock@0.2.7.{duration};
+ use wasi:clocks/monotonic-clock@0.2.8.{duration};
@since(version = 0.2.0)
use network.{network, error-code, ip-socket-address, ip-address-family};
diff --git a/wit/udp.wit b/wit/udp.wit
index ecf2dfe..0000a15 100644
--- a/wit/udp.wit
+++ b/wit/udp.wit
@@ -1,7 +1,7 @@
@since(version = 0.2.0)
interface udp {
@since(version = 0.2.0)
- use wasi:io/poll@0.2.7.{pollable};
+ use wasi:io/poll@0.2.8.{pollable};
@since(version = 0.2.0)
use network.{network, error-code, ip-socket-address, ip-address-family};
diff --git a/wit/world.wit b/wit/world.wit
index 9a4d317..4441e91 100644
--- a/wit/world.wit
+++ b/wit/world.wit
@@ -1,4 +1,4 @@
-package wasi:sockets@0.2.7;
+package wasi:sockets@0.2.8;
@since(version = 0.2.0)
world imports {