wasmtime/runtime/component/bindgen_examples/
_0_hello_world.rs

1
2
3
4
5
6
7
8
9
bindgen!({
  inline: r#"
      package my:project;
      world hello-world {
          import name: func() -> string;
          export greet: func();
      }
  "#,
});