componentized

component componentized:config-defaults@0.1.0

Combines value from two wasi:config/stores into a single store. The 'store' import is the base set of values, while the 'defaults' import, a mirror of the store interface, contributes default values when the config does not contain a value.

Imports

interface defaults

variant error

  • upstream: string
  • io: string

functionget: func(key: string) -> result<option<string>, error>

functionget-all: func() -> result<list<tuple<string, string>>, error>

Exports

WIT

package root:component;

world root {
  import wasi:config/store@0.2.0-draft;
  import defaults: interface {
    variant error {
      upstream(string),
      io(string),
    }

    get: func(key: string) -> result<option<string>, error>;

    get-all: func() -> result<list<tuple<string, string>>, error>;
  }

  export wasi:config/store@0.2.0-draft;
}
The WIT of its dependencies, as it was built against them

This version keeps the parts of its dependencies it uses, as they were when it was built: their indexed versions differ from them, e.g. a pre-release that has since moved, or aren't indexed.

package wasi:config@0.2.0-draft {
  interface store {
    variant error {
      upstream(string),
      io(string),
    }

    get: func(key: string) -> result<option<string>, error>;

    get-all: func() -> result<list<tuple<string, string>>, error>;
  }
}