wit-bindgen-cli 0.57.1

CLI tool to generate bindings for WIT documents and the component model.
package foo:foo;

interface http-fetch-imports {
    record request{
        method: string,
        uri: string,
        body: string
    }

    record response{
        status: u16,
        body: string
    }

    fetch: func(req: request) -> result<response>;
}

world http-fetch-simple {
    import http-fetch-imports;
}