wit-bindgen-cli 0.56.0

CLI tool to generate bindings for WIT documents and the component model.
//@ args = '--with my:inline/foo=other::my::inline::foo'

include!(env!("BINDINGS"));

mod other {
    wit_bindgen::generate!({
        inline: "
            package my:inline;

            interface foo {
                resource a;

                bar: func() -> a;
            }

            world dummy {
                import foo;
            }
        ",
    });
}

struct Component;

export!(Component);

impl Guest for Component {
    fn run() {
        let resource = other::my::inline::foo::bar();
        my::inline::bar::bar(resource);
    }
}