wasmtime/runtime/component/bindgen_examples/
_3_interface_imports.rsbindgen!({
inline: r#"
package example:interface-imports;
interface logging {
enum level {
debug,
info,
warn,
error,
}
log: func(level: level, msg: string);
}
world with-imports {
import logging;
}
"#,
});