Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.

Commit 965cbde

Browse files
github-actions[bot]ricochet
authored andcommitted
Update 0.3.0 WIT definitions to 0.3.0-rc-2025-08-15
1 parent fc5749a commit 965cbde

22 files changed

Lines changed: 268 additions & 261 deletions

wit-0.3.0-draft/command.wit

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package wasi:cli@0.3.0;
1+
package wasi:cli@0.3.0-rc-2025-08-15;
22

3-
@since(version = 0.3.0)
3+
@since(version = 0.3.0-rc-2025-08-15)
44
world command {
5-
@since(version = 0.3.0)
5+
@since(version = 0.3.0-rc-2025-08-15)
66
include imports;
77

8-
@since(version = 0.3.0)
8+
@since(version = 0.3.0-rc-2025-08-15)
99
export run;
1010
}

wit-0.3.0-draft/deps.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
[clocks]
2-
sha256 = "26e315db0d371495f8834edfc0e479042f94152ce677d96d54d3623d0e4ffb1e"
3-
sha512 = "e1c76f499435841316f9287b88d8173558e64f277c321ff390556de8707a0b18dd6c1749bbb17bbbba8d523da246ef6eb05c990ceddb762e03efb2ae30cacc76"
2+
sha256 = "626953ec28ae956ec1233c4350deab6e5cdcbdd9ae6d491e102ad7c6901cc8bf"
3+
sha512 = "ae375b002cfaacdbaa133bb87747d1b86675e13144067c3005d6c32cf5c37bb7a52b693ae46d5cd65fc4910a78d7255d0ada5142828a022497fd0eaacb61761f"
44

55
[filesystem]
66
url = "https://github.com/WebAssembly/wasi-filesystem/archive/main.tar.gz"
77
subdir = "wit-0.3.0-draft"
8-
sha256 = "f8a82b21e18cad3498b53475666a3f00c4c1b5f030b7ed47c79262e3dbe97461"
9-
sha512 = "0e62fe9ff3ba0572d890a2edd969e88a5c2327279cec681d3f2688ed8442820333f6041b0f0956b44941f971a6afb785bd2f5248ca0c99b51f13521496cadbcc"
8+
sha256 = "a65db475f8e41fa1701de4dc467ed748af5b807bdb2b5ff5027fefd0c0eab7a2"
9+
sha512 = "3a797b5eacad135ed8e0a903c3db8f9073e79ecc547e31bf1ec62e9576e2069ecd2e37561674c000ab6cabf1cfeec5c32648b58c592bf52911c5783f179db83a"
1010
deps = ["clocks"]
1111

1212
[random]
1313
url = "https://github.com/WebAssembly/wasi-random/archive/main.tar.gz"
1414
subdir = "wit-0.3.0-draft"
15-
sha256 = "7a483077cc23fc9dc7a3f067d62795663cceee7dbbd23f205934282b1164a83e"
16-
sha512 = "b99280fd60699f781f20209659e94c0058ce6b9e973ddbd0b8865d752f88c74633485d486d5a86b709385b6e60357470d1c6fbcb3a2769af210c0b1f52417506"
15+
sha256 = "fcc4d3b51564274bb05ebd7cad65ff036eed5c1ac1316639e0c04aa0d64fc938"
16+
sha512 = "d3b10e7791fc354730551f8e21beff96bdbf16f96ef655cd0ac7e0489a9e28c4a7a602d50b199de4a27981643bdbea7ec075cfa80ca351aea6ae74ea660b0568"
1717

1818
[sockets]
1919
url = "https://github.com/WebAssembly/wasi-sockets/archive/main.tar.gz"
2020
subdir = "wit-0.3.0-draft"
21-
sha256 = "a439ac477ff57f24331eb40989d50455b04cde0a12f235e88a5477614ea90264"
22-
sha512 = "cf779c887fa401695215122621d7715aa5716f09dc94087887c93964fd454a146bc3b20c834e4a8e997ccb190910699a1a880e6caaaec25c32d941f9c26ba37f"
21+
sha256 = "307e8459b8be0587000871d3f67fc04041e4cb1eb6c27e97183332fdb641926f"
22+
sha512 = "183054d40082bf9e0fd38daf77df0189445c54384537548d5d37bc1b3cfd05190b1ca4377760a7108c39650785c74e5e230abd296e0fda8e2a5b263cd41f848b"
2323
deps = ["clocks"]
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.3.0;
1+
package wasi:clocks@0.3.0-rc-2025-08-15;
22
/// WASI Monotonic Clock is a clock API intended to let users measure elapsed
33
/// time.
44
///
@@ -7,39 +7,39 @@ package wasi:clocks@0.3.0;
77
///
88
/// A monotonic clock is a clock which has an unspecified initial value, and
99
/// successive reads of the clock will produce non-decreasing values.
10-
@since(version = 0.3.0)
10+
@since(version = 0.3.0-rc-2025-08-15)
1111
interface monotonic-clock {
1212
/// An instant in time, in nanoseconds. An instant is relative to an
1313
/// unspecified initial value, and can only be compared to instances from
1414
/// the same monotonic-clock.
15-
@since(version = 0.3.0)
15+
@since(version = 0.3.0-rc-2025-08-15)
1616
type instant = u64;
1717

1818
/// A duration of time, in nanoseconds.
19-
@since(version = 0.3.0)
19+
@since(version = 0.3.0-rc-2025-08-15)
2020
type duration = u64;
2121

2222
/// Read the current value of the clock.
2323
///
2424
/// The clock is monotonic, therefore calling this function repeatedly will
2525
/// produce a sequence of non-decreasing values.
26-
@since(version = 0.3.0)
26+
@since(version = 0.3.0-rc-2025-08-15)
2727
now: func() -> instant;
2828

2929
/// Query the resolution of the clock. Returns the duration of time
3030
/// corresponding to a clock tick.
31-
@since(version = 0.3.0)
32-
resolution: func() -> duration;
31+
@since(version = 0.3.0-rc-2025-08-15)
32+
get-resolution: func() -> duration;
3333

3434
/// Wait until the specified instant has occurred.
35-
@since(version = 0.3.0)
36-
wait-until: func(
35+
@since(version = 0.3.0-rc-2025-08-15)
36+
wait-until: async func(
3737
when: instant,
3838
);
3939

4040
/// Wait for the specified duration has elapsed.
41-
@since(version = 0.3.0)
42-
wait-for: func(
41+
@since(version = 0.3.0-rc-2025-08-15)
42+
wait-for: async func(
4343
how-long: duration,
4444
);
4545
}

wit-0.3.0-draft/deps/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.3.0;
1+
package wasi:clocks@0.3.0-rc-2025-08-15;
22

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

wit-0.3.0-draft/deps/clocks/wall-clock.wit

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.3.0;
1+
package wasi:clocks@0.3.0-rc-2025-08-15;
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.
@@ -13,10 +13,10 @@ package wasi:clocks@0.3.0;
1313
/// monotonic, making it unsuitable for measuring elapsed time.
1414
///
1515
/// It is intended for reporting the current date and time for humans.
16-
@since(version = 0.3.0)
16+
@since(version = 0.3.0-rc-2025-08-15)
1717
interface wall-clock {
1818
/// A time and date in seconds plus nanoseconds.
19-
@since(version = 0.3.0)
19+
@since(version = 0.3.0-rc-2025-08-15)
2020
record datetime {
2121
seconds: u64,
2222
nanoseconds: u32,
@@ -35,12 +35,12 @@ interface wall-clock {
3535
///
3636
/// [POSIX's Seconds Since the Epoch]: https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xbd_chap04.html#tag_21_04_16
3737
/// [Unix Time]: https://en.wikipedia.org/wiki/Unix_time
38-
@since(version = 0.3.0)
38+
@since(version = 0.3.0-rc-2025-08-15)
3939
now: func() -> datetime;
4040

4141
/// Query the resolution of the clock.
4242
///
4343
/// The nanoseconds field of the output is always less than 1000000000.
44-
@since(version = 0.3.0)
45-
resolution: func() -> datetime;
44+
@since(version = 0.3.0-rc-2025-08-15)
45+
get-resolution: func() -> datetime;
4646
}

wit-0.3.0-draft/deps/clocks/world.wit

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package wasi:clocks@0.3.0;
1+
package wasi:clocks@0.3.0-rc-2025-08-15;
22

3-
@since(version = 0.3.0)
3+
@since(version = 0.3.0-rc-2025-08-15)
44
world imports {
5-
@since(version = 0.3.0)
5+
@since(version = 0.3.0-rc-2025-08-15)
66
import monotonic-clock;
7-
@since(version = 0.3.0)
7+
@since(version = 0.3.0-rc-2025-08-15)
88
import wall-clock;
99
@unstable(feature = clocks-timezone)
1010
import timezone;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package wasi:filesystem@0.3.0;
1+
package wasi:filesystem@0.3.0-rc-2025-08-15;
22

3-
@since(version = 0.3.0)
3+
@since(version = 0.3.0-rc-2025-08-15)
44
interface preopens {
5-
@since(version = 0.3.0)
5+
@since(version = 0.3.0-rc-2025-08-15)
66
use types.{descriptor};
77

88
/// Return the set of preopened directories, and their paths.
9-
@since(version = 0.3.0)
9+
@since(version = 0.3.0-rc-2025-08-15)
1010
get-directories: func() -> list<tuple<descriptor, string>>;
1111
}

0 commit comments

Comments
 (0)