.cargo/vendor/wit-bindgen/src/examples/_0_world_imports.rs
raw| 1 | crate::generate!({ |
| 2 | inline: r#" |
| 3 | package example:world-imports; |
| 4 | |
| 5 | world with-imports { |
| 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 | }); |