wit-bindgen-cli 0.57.1

CLI tool to generate bindings for WIT documents and the component model.
use wit_bindgen::FutureReader;

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

struct Component;

export!(Component);

impl crate::exports::my::test::i::Guest for Component {
    async fn pending_import(x: FutureReader<()>) {
        x.await
    }

    fn backpressure_set(x: bool) {
        if x {
            wit_bindgen::backpressure_inc();
        } else {
            wit_bindgen::backpressure_dec();
        }
    }
}