when using the host_bindgen! macro on a wit file that has multiple worlds in it, I end up not getting the expected bindings. It would be nice to specify the world that the host should care about instead of having to create a separate wit file for the host wit just the world the host should implement.
hyperlight_component_macro::host_bindgen!();
example wit:
interface event {
handle: func(x: u32) -> u32;
}
world handler {
export event;
}
world runner {
import event;
}
Currently I don't seem to be able to get bindings for the handler world. I am seeing bindings generated for the Runner Imports.
when using the
host_bindgen!macro on a wit file that has multiple worlds in it, I end up not getting the expected bindings. It would be nice to specify the world that the host should care about instead of having to create a separate wit file for the host wit just the world the host should implement.example wit:
Currently I don't seem to be able to get bindings for the
handlerworld. I am seeing bindings generated for theRunnerImports.