wit-bindgen-cli 0.59.0

CLI tool to generate bindings for WIT documents and the component model.
//@ wasmtime-flags = '-Wcomponent-model-async'

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

use crate::a::b::the_test::{get, set};

struct Component;

export!(Component);

impl Guest for Component {
    async fn run() {
        let (tx, rx) = wit_future::new(|| ());

        set(rx);
        let rx = get();
        drop(rx);
        drop(tx);

        let (_tx, rx) = wit_future::new::<()>(|| ());
        drop(rx);
    }
}