From 2cf3523e0827ef26e1d58cde8580f9dac6ff767f Mon Sep 17 00:00:00 2001 From: Bailey Hayes Date: Thu, 13 Feb 2025 14:51:57 -0800 Subject: [PATCH 1/2] ci: render all-features Future-proofing for later feature additions --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ef42807..584e02c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,9 +20,9 @@ jobs: git add -N wit/deps git add -N wit-0.3.0-draft/deps git diff --exit-code - - uses: WebAssembly/wit-abi-up-to-date@v22 + - uses: WebAssembly/wit-abi-up-to-date@v23 with: wit-bindgen: '0.33.0' wasm-tools: '1.218.0' worlds: 'command imports' - features: 'cli-exit-with-code' + all-features: 'true' From 8354682cb411689ff842fa0f4819bc3bab503731 Mon Sep 17 00:00:00 2001 From: Yosh Date: Fri, 14 Feb 2025 17:11:08 +0100 Subject: [PATCH 2/2] fix CI --- command.md | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++- imports.md | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 178 insertions(+), 2 deletions(-) diff --git a/command.md b/command.md index 1350bc2..ee3d650 100644 --- a/command.md +++ b/command.md @@ -17,6 +17,7 @@
  • interface wasi:cli/terminal-stderr@0.2.4
  • interface wasi:clocks/monotonic-clock@0.2.4
  • interface wasi:clocks/wall-clock@0.2.4
  • +
  • interface wasi:clocks/timezone@0.2.4
  • interface wasi:filesystem/types@0.2.4
  • interface wasi:filesystem/preopens@0.2.4
  • interface wasi:sockets/network@0.2.4
  • @@ -708,6 +709,71 @@ also known as Unix Time.
  • datetime
  • +

    Import interface wasi:clocks/timezone@0.2.4

    +
    +

    Types

    +

    type datetime

    +

    datetime

    +

    +#### `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.

    +
    Record Fields
    + +
    +

    Functions

    +

    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.

    +

    If the timezone cannot be determined for the given datetime, return a +timezone-display for UTC with a utc-offset of 0 and no daylight +saving time.

    +
    Params
    + +
    Return values
    + +

    utc-offset: func

    +

    The same as display, but only return the UTC offset.

    +
    Params
    + +
    Return values
    +

    Import interface wasi:filesystem/types@0.2.4

    WASI filesystem is a filesystem API primarily intended to let users run WASI programs that access their files on their existing filesystems, without @@ -1603,7 +1669,10 @@ errors are filesystem-related errors.

    Import interface wasi:sockets/network@0.2.4


    Types

    -

    resource network

    +

    type error

    +

    error

    +

    +#### `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.

    @@ -1793,6 +1862,25 @@ supported size.
  • ipv4: ipv4-socket-address
  • ipv6: ipv6-socket-address
  • +
    +

    Functions

    +

    network-error-code: func

    +

    Attempts to extract a network-related error-code from the stream +error provided.

    +

    Stream operations which return stream-error::last-operation-failed +have a payload with more information about the operation that failed. +This payload can be passed through to this function to see if there's +network-related information about the error to return.

    +

    Note that this function is fallible because not all stream-related +errors are network-related errors.

    +
    Params
    + +
    Return values
    +

    Import interface wasi:sockets/instance-network@0.2.4

    This interface provides a value-export of the default network handle..


    diff --git a/imports.md b/imports.md index 1751177..58c8d29 100644 --- a/imports.md +++ b/imports.md @@ -17,6 +17,7 @@
  • interface wasi:cli/terminal-stderr@0.2.4
  • interface wasi:clocks/monotonic-clock@0.2.4
  • interface wasi:clocks/wall-clock@0.2.4
  • +
  • interface wasi:clocks/timezone@0.2.4
  • interface wasi:filesystem/types@0.2.4
  • interface wasi:filesystem/preopens@0.2.4
  • interface wasi:sockets/network@0.2.4
  • @@ -703,6 +704,71 @@ also known as Unix Time.
  • datetime
  • +

    Import interface wasi:clocks/timezone@0.2.4

    +
    +

    Types

    +

    type datetime

    +

    datetime

    +

    +#### `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.

    +
    Record Fields
    + +
    +

    Functions

    +

    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.

    +

    If the timezone cannot be determined for the given datetime, return a +timezone-display for UTC with a utc-offset of 0 and no daylight +saving time.

    +
    Params
    + +
    Return values
    + +

    utc-offset: func

    +

    The same as display, but only return the UTC offset.

    +
    Params
    + +
    Return values
    +

    Import interface wasi:filesystem/types@0.2.4

    WASI filesystem is a filesystem API primarily intended to let users run WASI programs that access their files on their existing filesystems, without @@ -1598,7 +1664,10 @@ errors are filesystem-related errors.

    Import interface wasi:sockets/network@0.2.4


    Types

    -

    resource network

    +

    type error

    +

    error

    +

    +#### `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.

    @@ -1788,6 +1857,25 @@ supported size.
  • ipv4: ipv4-socket-address
  • ipv6: ipv6-socket-address
  • +
    +

    Functions

    +

    network-error-code: func

    +

    Attempts to extract a network-related error-code from the stream +error provided.

    +

    Stream operations which return stream-error::last-operation-failed +have a payload with more information about the operation that failed. +This payload can be passed through to this function to see if there's +network-related information about the error to return.

    +

    Note that this function is fallible because not all stream-related +errors are network-related errors.

    +
    Params
    + +
    Return values
    +

    Import interface wasi:sockets/instance-network@0.2.4

    This interface provides a value-export of the default network handle..