wit-bindgen-cli 0.57.0

CLI tool to generate bindings for WIT documents and the component model.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ async = true
//@ error-context = true

package foo:foo;

interface error-contexts {
  type foo = error-context;

  bar: func(x: foo, y: error-context, z: future<error-context>) -> result<stream<error-context>, error-context>;
}

world foo {
  import error-contexts;
  export error-contexts;
}