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
14
15
16
17
package foo:foo;

interface simple {
  f1: func();
  f2: func(a: u32);
  f3: func(a: u32, b: u32);

  f4: func() -> u32;
  f5: func() -> tuple<u32, u32>;

  f6: func(a: u32, b: u32, c: u32) -> tuple<u32, u32, u32>;
}

world the-world {
  import simple;
  export simple;
}