wasmtime/runtime/component/bindgen_examples/
_1_world_imports.rs1bindgen!({
2 inline: r#"
3 package example:imports;
4
5 world my-world {
6 /// Fetch a greeting to present.
7 import greet: func() -> string;
8
9 /// Log a message to the host.
10 import log: func(msg: string);
11
12 import my-custom-host: interface {
13 tick: func();
14 }
15 }
16 "#,
17});