wasmtime-component-macro 24.0.7

Macros for deriving component interface types from Rust types
Documentation
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;
}