Expand description
An example of generated bindings for top-level imported functions and interfaces into a world.
The code used to generate this module is:
crate::generate!({
inline: r#"
package example:world-imports;
world with-imports {
/// Fetch a greeting to present.
import greet: func() -> string;
/// Log a message to the host.
import log: func(msg: string);
import my-custom-host: interface {
tick: func();
}
}
"#,
});
Modules§
Functions§
- Fetch a greeting to present.
- Log a message to the host.