diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e5ad565..61a0d54 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,3 +21,4 @@ jobs: wasm-tools: '1.215.0' wit-bindgen: '0.30.0' worlds: 'imports proxy' + features: 'config' diff --git a/imports.md b/imports.md index 6a3caf1..4467228 100644 --- a/imports.md +++ b/imports.md @@ -13,6 +13,7 @@ It is intended to be included in other worlds.

  • interface wasi:cli/stdout@0.2.1
  • interface wasi:cli/stderr@0.2.1
  • interface wasi:cli/stdin@0.2.1
  • +
  • interface wasi:config/runtime@0.2.0-draft
  • interface wasi:http/types@0.2.1
  • interface wasi:http/outgoing-handler@0.2.1
  • @@ -258,6 +259,8 @@ when it does, they are expected to subsume this API.

    last-operation-failed: own<error>

    The last operation (a write or flush) failed before completion.

    More information is available in the error payload.

    +

    After this, the stream will be closed. All future operations return +stream-error::closed.

  • closed

    @@ -604,6 +607,47 @@ is ready for reading, before performing the splice.

    +

    Import interface wasi:config/runtime@0.2.0-draft

    +
    +

    Types

    +

    variant config-error

    +

    An error type that encapsulates the different errors that can occur fetching config

    +
    Variant Cases
    + +
    +

    Functions

    +

    get: func

    +

    Gets a single opaque config value set at the given key if it exists

    +
    Params
    + +
    Return values
    + +

    get-all: func

    +

    Gets a list of all set config data

    +
    Return values
    +

    Import interface wasi:http/types@0.2.1

    This interface defines all of the types and methods for implementing HTTP Requests and Responses, both incoming and outgoing, as well as @@ -629,7 +673,7 @@ their headers, trailers, and bodies.

    This type corresponds to HTTP standard Methods.

    Variant Cases