Skip to content
This repository was archived by the owner on Nov 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions wit-0.3.0-draft/command.wit
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package wasi:cli@0.3.0;
package wasi:cli@0.3.0-rc-2025-08-15;

@since(version = 0.3.0)
@since(version = 0.3.0-rc-2025-08-15)
world command {
@since(version = 0.3.0)
@since(version = 0.3.0-rc-2025-08-15)
include imports;

@since(version = 0.3.0)
@since(version = 0.3.0-rc-2025-08-15)
export run;
}
16 changes: 8 additions & 8 deletions wit-0.3.0-draft/deps.lock
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
[clocks]
sha256 = "26e315db0d371495f8834edfc0e479042f94152ce677d96d54d3623d0e4ffb1e"
sha512 = "e1c76f499435841316f9287b88d8173558e64f277c321ff390556de8707a0b18dd6c1749bbb17bbbba8d523da246ef6eb05c990ceddb762e03efb2ae30cacc76"
sha256 = "626953ec28ae956ec1233c4350deab6e5cdcbdd9ae6d491e102ad7c6901cc8bf"
sha512 = "ae375b002cfaacdbaa133bb87747d1b86675e13144067c3005d6c32cf5c37bb7a52b693ae46d5cd65fc4910a78d7255d0ada5142828a022497fd0eaacb61761f"

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

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

[sockets]
url = "https://github.com/WebAssembly/wasi-sockets/archive/main.tar.gz"
subdir = "wit-0.3.0-draft"
sha256 = "a439ac477ff57f24331eb40989d50455b04cde0a12f235e88a5477614ea90264"
sha512 = "cf779c887fa401695215122621d7715aa5716f09dc94087887c93964fd454a146bc3b20c834e4a8e997ccb190910699a1a880e6caaaec25c32d941f9c26ba37f"
sha256 = "307e8459b8be0587000871d3f67fc04041e4cb1eb6c27e97183332fdb641926f"
sha512 = "183054d40082bf9e0fd38daf77df0189445c54384537548d5d37bc1b3cfd05190b1ca4377760a7108c39650785c74e5e230abd296e0fda8e2a5b263cd41f848b"
deps = ["clocks"]
22 changes: 11 additions & 11 deletions wit-0.3.0-draft/deps/clocks/monotonic-clock.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:clocks@0.3.0;
package wasi:clocks@0.3.0-rc-2025-08-15;
/// WASI Monotonic Clock is a clock API intended to let users measure elapsed
/// time.
///
Expand All @@ -7,39 +7,39 @@ package wasi:clocks@0.3.0;
///
/// A monotonic clock is a clock which has an unspecified initial value, and
/// successive reads of the clock will produce non-decreasing values.
@since(version = 0.3.0)
@since(version = 0.3.0-rc-2025-08-15)
interface monotonic-clock {
/// 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.
@since(version = 0.3.0)
@since(version = 0.3.0-rc-2025-08-15)
type instant = u64;

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

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

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

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

/// Wait for the specified duration has elapsed.
@since(version = 0.3.0)
wait-for: func(
@since(version = 0.3.0-rc-2025-08-15)
wait-for: async func(
how-long: duration,
);
}
2 changes: 1 addition & 1 deletion wit-0.3.0-draft/deps/clocks/timezone.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:clocks@0.3.0;
package wasi:clocks@0.3.0-rc-2025-08-15;

@unstable(feature = clocks-timezone)
interface timezone {
Expand Down
12 changes: 6 additions & 6 deletions wit-0.3.0-draft/deps/clocks/wall-clock.wit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package wasi:clocks@0.3.0;
package wasi:clocks@0.3.0-rc-2025-08-15;
/// 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.
Expand All @@ -13,10 +13,10 @@ package wasi:clocks@0.3.0;
/// monotonic, making it unsuitable for measuring elapsed time.
///
/// It is intended for reporting the current date and time for humans.
@since(version = 0.3.0)
@since(version = 0.3.0-rc-2025-08-15)
interface wall-clock {
/// A time and date in seconds plus nanoseconds.
@since(version = 0.3.0)
@since(version = 0.3.0-rc-2025-08-15)
record datetime {
seconds: u64,
nanoseconds: u32,
Expand All @@ -35,12 +35,12 @@ interface wall-clock {
///
/// [POSIX's Seconds Since the Epoch]: https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xbd_chap04.html#tag_21_04_16
/// [Unix Time]: https://en.wikipedia.org/wiki/Unix_time
@since(version = 0.3.0)
@since(version = 0.3.0-rc-2025-08-15)
now: func() -> datetime;

/// Query the resolution of the clock.
///
/// The nanoseconds field of the output is always less than 1000000000.
@since(version = 0.3.0)
resolution: func() -> datetime;
@since(version = 0.3.0-rc-2025-08-15)
get-resolution: func() -> datetime;
}
8 changes: 4 additions & 4 deletions wit-0.3.0-draft/deps/clocks/world.wit
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package wasi:clocks@0.3.0;
package wasi:clocks@0.3.0-rc-2025-08-15;

@since(version = 0.3.0)
@since(version = 0.3.0-rc-2025-08-15)
world imports {
@since(version = 0.3.0)
@since(version = 0.3.0-rc-2025-08-15)
import monotonic-clock;
@since(version = 0.3.0)
@since(version = 0.3.0-rc-2025-08-15)
import wall-clock;
@unstable(feature = clocks-timezone)
import timezone;
Expand Down
8 changes: 4 additions & 4 deletions wit-0.3.0-draft/deps/filesystem/preopens.wit
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package wasi:filesystem@0.3.0;
package wasi:filesystem@0.3.0-rc-2025-08-15;

@since(version = 0.3.0)
@since(version = 0.3.0-rc-2025-08-15)
interface preopens {
@since(version = 0.3.0)
@since(version = 0.3.0-rc-2025-08-15)
use types.{descriptor};

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