wit-bindgen-cli 0.56.0

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

interface original {
  resource extra-options;
  record options {
    extra: option<borrow<extra-options>>,
  }
}

interface adapter {
  use original.{options};
  variant t { a }
  f: func(x: options, t: t);
}

world root {
  export original;
  export adapter;
}