wit-bindgen-cli 0.57.1

CLI tool to generate bindings for WIT documents and the component model.
package test:merge-equal;

// This interface is not reachable from the test world,
// so it cannot be used as a representative type
interface unreachable {
    record payload {
        data: list<u8>,
        tag: string,
    }
}

interface importer {
    record payload {
        data: list<u8>,
        tag: string,
    }
    consume: func(p: payload);
}

interface exporter {
    record payload {
        data: list<u8>,
        tag: string,
    }
    produce: func() -> payload;
}

world test {
    import importer;
    export exporter;
}