wit-bindgen-cli 0.57.1

CLI tool to generate bindings for WIT documents and the component model.
package test:variant-with-data;

interface to-test {
  variant data-variant {
    bytes(list<u8>),
    number(u32),
    text(string)
  }

  get-data: func(num: u8) -> data-variant;
}

world runner {
  import to-test;

  export run: func();
}

world test {
  export to-test;
}