diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 244de48..2b0fc35 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: ./wit-deps lock git add -N wit/deps git diff --exit-code - - uses: WebAssembly/wit-abi-up-to-date@v21 + - uses: WebAssembly/wit-abi-up-to-date@v22 with: features: clocks-timezone - wit-bindgen: '0.28.0' + wit-bindgen: '0.33.0' diff --git a/imports.md b/imports.md index 886f9ff..ee9ca51 100644 --- a/imports.md +++ b/imports.md @@ -1,43 +1,43 @@ -
wasi:io/poll@0.2.1
wasi:clocks/monotonic-clock@0.2.1
wasi:clocks/wall-clock@0.2.1
wasi:clocks/timezone@0.2.1
wasi:io/poll@0.2.2
wasi:clocks/monotonic-clock@0.2.2
wasi:clocks/wall-clock@0.2.2
wasi:clocks/timezone@0.2.2
A poll API intended to let users wait for I/O events on multiple handles at once.
resource pollable
resource pollable
pollable
represents a single I/O event which may be ready, or not.[method]pollable.ready: func
[method]pollable.ready: func
Return the readiness of a pollable. This function never blocks.
Returns true
when the pollable is ready, and false
otherwise.
[method]pollable.block: func
[method]pollable.block: func
block
returns immediately if the pollable is ready, and otherwise
blocks until ready.
This function is equivalent to calling poll.poll
on a list
containing only this pollable.
poll: func
poll: func
Poll for completion on a set of pollables.
This function takes a list of pollables, which identify I/O sources of interest, and waits until one or more of the events is ready for I/O.
@@ -56,13 +56,13 @@ the pollables has an error, it is indicated by marking the source as being ready for I/O.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 @@ -71,57 +71,57 @@ Windows.
successive reads of the clock will produce non-decreasing values.type pollable
type pollable
-#### `type instant` +#### `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. -
type duration
type duration
u64
A duration of time, in nanoseconds.
now: func
now: func
Read the current value of the clock.
The clock is monotonic, therefore calling this function repeatedly will produce a sequence of non-decreasing values.
resolution: func
resolution: func
Query the resolution of the clock. Returns the duration of time corresponding to a clock tick.
subscribe-instant: func
subscribe-instant: func
Create a pollable
which will resolve once the specified instant
has occurred.
subscribe-duration: func
subscribe-duration: func
Create a pollable
that will resolve after the specified duration has
elapsed from the time this function is invoked.
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.
@@ -134,16 +134,16 @@ monotonic, making it unsuitable for measuring elapsed time.It is intended for reporting the current date and time for humans.
record datetime
record datetime
A time and date in seconds plus nanoseconds.
now: func
now: func
Read the current value of the clock.
This clock is not monotonic, therefore calling this function repeatedly will not necessarily produce a sequence of non-decreasing values.
@@ -153,29 +153,29 @@ also known as Unix Time.The nanoseconds field of the output is always less than 1000000000.
resolution: func
resolution: func
Query the resolution of the clock.
The nanoseconds field of the output is always less than 1000000000.
type datetime
type datetime
-#### `record timezone-display` +#### `record timezone-display`
Information useful for displaying the timezone of a specific datetime
.
This information may vary within a single timezone
to reflect daylight
saving time adjustments.
utc-offset
: s32
utc-offset
: s32
The number of seconds difference between UTC time and the local time of the timezone.
The returned value will always be less than 86400 which is the @@ -184,7 +184,7 @@ number of seconds in a day (246060).
should return 0.The abbreviated name of the timezone to display to a user. The name
`UTC` indicates Coordinated Universal Time. Otherwise, this should
reference local standards for the name of the time zone.
@@ -194,7 +194,7 @@ should be the string UTC
.
-04:00
.
Whether daylight saving time is active.
In implementations that do not expose an actual time zone, this should return false.
@@ -202,7 +202,7 @@ should return false.display: func
display: func
Return information needed to display the given datetime
. This includes
the UTC offset, the time zone name, and a flag indicating whether
daylight saving time is active.
utc-offset: func
utc-offset: func
The same as display
, but only return the UTC offset.