Skip to content

Commit e4301ab

Browse files
authored
Merge pull request #174 from WebAssembly/update-wit-0.3.0-rc-2025-08-15
Update 0.3.0 WIT definitions to 0.3.0-rc-2025-08-15
2 parents 09235a7 + f54f385 commit e4301ab

24 files changed

+279
-273
lines changed

wit-0.3.0-draft/deps.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
[cli]
22
url = "https://github.com/WebAssembly/wasi-cli/archive/main.tar.gz"
33
subdir = "wit-0.3.0-draft"
4-
sha256 = "9a94018c67baf2ab4475f23c164514724ca08795195184adb4b38cb8dc5d6f9c"
5-
sha512 = "8d2f3076eb94118c5321fd18dda60c0078087dbcbed57c6b973b8fc2225670045d94a6f70f4f19c0fb0e13bbb0344325d4dce3a48417b97434344d2a2c1371fd"
4+
sha256 = "7f9cf181100ca1cadcb49a1efa3e80828d375df2d5ddf10a8f66e848d423aea5"
5+
sha512 = "569f6b4ed2a3bec913e5e06fd35caab564048cf31632795c2fbdd8c40ddb5f5eea7b1cc59d33c80e5d7b642ed246ba4a3e40d3edeaaa2c6a5c4bcd02e0b67212"
66
deps = ["clocks", "filesystem", "random", "sockets"]
77

88
[clocks]
9-
sha256 = "26e315db0d371495f8834edfc0e479042f94152ce677d96d54d3623d0e4ffb1e"
10-
sha512 = "e1c76f499435841316f9287b88d8173558e64f277c321ff390556de8707a0b18dd6c1749bbb17bbbba8d523da246ef6eb05c990ceddb762e03efb2ae30cacc76"
9+
sha256 = "626953ec28ae956ec1233c4350deab6e5cdcbdd9ae6d491e102ad7c6901cc8bf"
10+
sha512 = "ae375b002cfaacdbaa133bb87747d1b86675e13144067c3005d6c32cf5c37bb7a52b693ae46d5cd65fc4910a78d7255d0ada5142828a022497fd0eaacb61761f"
1111

1212
[filesystem]
13-
sha256 = "f8a82b21e18cad3498b53475666a3f00c4c1b5f030b7ed47c79262e3dbe97461"
14-
sha512 = "0e62fe9ff3ba0572d890a2edd969e88a5c2327279cec681d3f2688ed8442820333f6041b0f0956b44941f971a6afb785bd2f5248ca0c99b51f13521496cadbcc"
13+
sha256 = "a65db475f8e41fa1701de4dc467ed748af5b807bdb2b5ff5027fefd0c0eab7a2"
14+
sha512 = "3a797b5eacad135ed8e0a903c3db8f9073e79ecc547e31bf1ec62e9576e2069ecd2e37561674c000ab6cabf1cfeec5c32648b58c592bf52911c5783f179db83a"
1515

1616
[random]
17-
sha256 = "7a483077cc23fc9dc7a3f067d62795663cceee7dbbd23f205934282b1164a83e"
18-
sha512 = "b99280fd60699f781f20209659e94c0058ce6b9e973ddbd0b8865d752f88c74633485d486d5a86b709385b6e60357470d1c6fbcb3a2769af210c0b1f52417506"
17+
sha256 = "fcc4d3b51564274bb05ebd7cad65ff036eed5c1ac1316639e0c04aa0d64fc938"
18+
sha512 = "d3b10e7791fc354730551f8e21beff96bdbf16f96ef655cd0ac7e0489a9e28c4a7a602d50b199de4a27981643bdbea7ec075cfa80ca351aea6ae74ea660b0568"
1919

2020
[sockets]
21-
sha256 = "48fa617cdf64b66adc7136e4f0c14886061e6d5134072bf8e1698b84e2579669"
22-
sha512 = "786b8a03c14d3f529500275762a37c497ea1e6479e71028e8173aa07594beb77226904d77970a7c356ff3f59aa4a5c10f2e68537cc96b9916ff03a317b05a229"
21+
sha256 = "307e8459b8be0587000871d3f67fc04041e4cb1eb6c27e97183332fdb641926f"
22+
sha512 = "183054d40082bf9e0fd38daf77df0189445c54384537548d5d37bc1b3cfd05190b1ca4377760a7108c39650785c74e5e230abd296e0fda8e2a5b263cd41f848b"

wit-0.3.0-draft/deps/cli/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
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@since(version = 0.3.0)
1+
@since(version = 0.3.0-rc-2025-08-15)
22
interface environment {
33
/// Get the POSIX-style environment variables.
44
///
@@ -8,15 +8,15 @@ interface environment {
88
/// Morally, these are a value import, but until value imports are available
99
/// in the component model, this import function should return the same
1010
/// values each time it is called.
11-
@since(version = 0.3.0)
11+
@since(version = 0.3.0-rc-2025-08-15)
1212
get-environment: func() -> list<tuple<string, string>>;
1313

1414
/// Get the POSIX-style arguments to the program.
15-
@since(version = 0.3.0)
15+
@since(version = 0.3.0-rc-2025-08-15)
1616
get-arguments: func() -> list<string>;
1717

1818
/// Return a path that programs should use as their initial current working
1919
/// directory, interpreting `.` as shorthand for this.
20-
@since(version = 0.3.0)
21-
initial-cwd: func() -> option<string>;
20+
@since(version = 0.3.0-rc-2025-08-15)
21+
get-initial-cwd: func() -> option<string>;
2222
}

wit-0.3.0-draft/deps/cli/exit.wit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
@since(version = 0.3.0)
1+
@since(version = 0.3.0-rc-2025-08-15)
22
interface exit {
33
/// Exit the current instance and any linked instances.
4-
@since(version = 0.3.0)
4+
@since(version = 0.3.0-rc-2025-08-15)
55
exit: func(status: result);
66

77
/// Exit the current instance and any linked instances, reporting the

wit-0.3.0-draft/deps/cli/imports.wit

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
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 imports {
5-
@since(version = 0.3.0)
6-
include wasi:clocks/imports@0.3.0;
7-
@since(version = 0.3.0)
8-
include wasi:filesystem/imports@0.3.0;
9-
@since(version = 0.3.0)
10-
include wasi:sockets/imports@0.3.0;
11-
@since(version = 0.3.0)
12-
include wasi:random/imports@0.3.0;
5+
@since(version = 0.3.0-rc-2025-08-15)
6+
include wasi:clocks/imports@0.3.0-rc-2025-08-15;
7+
@since(version = 0.3.0-rc-2025-08-15)
8+
include wasi:filesystem/imports@0.3.0-rc-2025-08-15;
9+
@since(version = 0.3.0-rc-2025-08-15)
10+
include wasi:sockets/imports@0.3.0-rc-2025-08-15;
11+
@since(version = 0.3.0-rc-2025-08-15)
12+
include wasi:random/imports@0.3.0-rc-2025-08-15;
1313

14-
@since(version = 0.3.0)
14+
@since(version = 0.3.0-rc-2025-08-15)
1515
import environment;
16-
@since(version = 0.3.0)
16+
@since(version = 0.3.0-rc-2025-08-15)
1717
import exit;
18-
@since(version = 0.3.0)
18+
@since(version = 0.3.0-rc-2025-08-15)
1919
import stdin;
20-
@since(version = 0.3.0)
20+
@since(version = 0.3.0-rc-2025-08-15)
2121
import stdout;
22-
@since(version = 0.3.0)
22+
@since(version = 0.3.0-rc-2025-08-15)
2323
import stderr;
24-
@since(version = 0.3.0)
24+
@since(version = 0.3.0-rc-2025-08-15)
2525
import terminal-input;
26-
@since(version = 0.3.0)
26+
@since(version = 0.3.0-rc-2025-08-15)
2727
import terminal-output;
28-
@since(version = 0.3.0)
28+
@since(version = 0.3.0-rc-2025-08-15)
2929
import terminal-stdin;
30-
@since(version = 0.3.0)
30+
@since(version = 0.3.0-rc-2025-08-15)
3131
import terminal-stdout;
32-
@since(version = 0.3.0)
32+
@since(version = 0.3.0-rc-2025-08-15)
3333
import terminal-stderr;
3434
}

wit-0.3.0-draft/deps/cli/run.wit

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
@since(version = 0.3.0)
1+
@since(version = 0.3.0-rc-2025-08-15)
22
interface run {
33
/// Run the program.
4-
@since(version = 0.3.0)
4+
@since(version = 0.3.0-rc-2025-08-15)
55
run: func() -> result;
66
}

wit-0.3.0-draft/deps/cli/stdio.wit

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
@since(version = 0.3.0)
1+
@since(version = 0.3.0-rc-2025-08-15)
22
interface stdin {
3-
@since(version = 0.3.0)
3+
@since(version = 0.3.0-rc-2025-08-15)
44
get-stdin: func() -> stream<u8>;
55
}
66

7-
@since(version = 0.3.0)
7+
@since(version = 0.3.0-rc-2025-08-15)
88
interface stdout {
9-
@since(version = 0.3.0)
9+
@since(version = 0.3.0-rc-2025-08-15)
1010
set-stdout: func(data: stream<u8>);
1111
}
1212

13-
@since(version = 0.3.0)
13+
@since(version = 0.3.0-rc-2025-08-15)
1414
interface stderr {
15-
@since(version = 0.3.0)
15+
@since(version = 0.3.0-rc-2025-08-15)
1616
set-stderr: func(data: stream<u8>);
1717
}

wit-0.3.0-draft/deps/cli/terminal.wit

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
/// In the future, this may include functions for disabling echoing,
44
/// disabling input buffering so that keyboard events are sent through
55
/// immediately, querying supported features, and so on.
6-
@since(version = 0.3.0)
6+
@since(version = 0.3.0-rc-2025-08-15)
77
interface terminal-input {
88
/// The input side of a terminal.
9-
@since(version = 0.3.0)
9+
@since(version = 0.3.0-rc-2025-08-15)
1010
resource terminal-input;
1111
}
1212

@@ -15,48 +15,48 @@ interface terminal-input {
1515
/// In the future, this may include functions for querying the terminal
1616
/// size, being notified of terminal size changes, querying supported
1717
/// features, and so on.
18-
@since(version = 0.3.0)
18+
@since(version = 0.3.0-rc-2025-08-15)
1919
interface terminal-output {
2020
/// The output side of a terminal.
21-
@since(version = 0.3.0)
21+
@since(version = 0.3.0-rc-2025-08-15)
2222
resource terminal-output;
2323
}
2424

2525
/// An interface providing an optional `terminal-input` for stdin as a
2626
/// link-time authority.
27-
@since(version = 0.3.0)
27+
@since(version = 0.3.0-rc-2025-08-15)
2828
interface terminal-stdin {
29-
@since(version = 0.3.0)
29+
@since(version = 0.3.0-rc-2025-08-15)
3030
use terminal-input.{terminal-input};
3131

3232
/// If stdin is connected to a terminal, return a `terminal-input` handle
3333
/// allowing further interaction with it.
34-
@since(version = 0.3.0)
34+
@since(version = 0.3.0-rc-2025-08-15)
3535
get-terminal-stdin: func() -> option<terminal-input>;
3636
}
3737

3838
/// An interface providing an optional `terminal-output` for stdout as a
3939
/// link-time authority.
40-
@since(version = 0.3.0)
40+
@since(version = 0.3.0-rc-2025-08-15)
4141
interface terminal-stdout {
42-
@since(version = 0.3.0)
42+
@since(version = 0.3.0-rc-2025-08-15)
4343
use terminal-output.{terminal-output};
4444

4545
/// If stdout is connected to a terminal, return a `terminal-output` handle
4646
/// allowing further interaction with it.
47-
@since(version = 0.3.0)
47+
@since(version = 0.3.0-rc-2025-08-15)
4848
get-terminal-stdout: func() -> option<terminal-output>;
4949
}
5050

5151
/// An interface providing an optional `terminal-output` for stderr as a
5252
/// link-time authority.
53-
@since(version = 0.3.0)
53+
@since(version = 0.3.0-rc-2025-08-15)
5454
interface terminal-stderr {
55-
@since(version = 0.3.0)
55+
@since(version = 0.3.0-rc-2025-08-15)
5656
use terminal-output.{terminal-output};
5757

5858
/// If stderr is connected to a terminal, return a `terminal-output` handle
5959
/// allowing further interaction with it.
60-
@since(version = 0.3.0)
60+
@since(version = 0.3.0-rc-2025-08-15)
6161
get-terminal-stderr: func() -> option<terminal-output>;
6262
}
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:[email protected];
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 {

0 commit comments

Comments
 (0)