wit-bindgen-cli 0.56.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
16
17
package example:composition;

let leaf-thing = new test:leaf-thing { ... };
let leaf-toplevel = new test:leaf-toplevel {
  test: leaf-thing.test,
  thing: leaf-thing.test.thing,
  ...
};
let intermediate = new test:intermediate {
  test: leaf-thing.test,
  toplevel-import: leaf-toplevel.toplevel-export,
  thing: leaf-thing.test.thing,
  ...
};
let runner = new test:runner { test: intermediate.test, ... };

export runner...;