wit-bindgen-cli 0.57.1

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
package foo:foo;

interface simple-lists {
  simple-list1: func(l: list<u32>);
  simple-list2: func() -> list<u32>;
  simple-list3: func(a: list<u32>, b: list<u32>) -> tuple<list<u32>, list<u32>>;
  simple-list4: func(l: list<list<u32>>) -> list<list<u32>>;
}

world my-world {
  import simple-lists;
  export simple-lists;
}