Skip to content

Support selecting a world for host_bindgen #651

@jsturtevant

Description

@jsturtevant

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/confirmedBug is verified or proposal seems reasonable

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions