wasmtime/runtime/component/bindgen_examples/
_2_world_exports.rs1bindgen!({
2 inline: r#"
3 package my:project;
4
5 interface host {
6 gen-random-integer: func() -> u32;
7 sha256: func(bytes: list<u8>) -> string;
8 }
9
10 world hello-world {
11 import host;
12
13 export demo: interface {
14 run: func();
15 }
16 }
17 "#,
18});