wit-bindgen-cli 0.61.1

CLI tool to generate bindings for WIT documents and the component model.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import wit.my.lists.runner;
import cat = wit.my.lists.runner.imports.cat;
import wit.common;

@witExport("$root", "run")
void run() {
    cat.foo((cast(immutable ubyte[])"hello").witList);

    WitList!ubyte t = cat.bar();
    scope(exit) t.witFree;
    assert(t == (cast(immutable ubyte[])"world").witList);
}

alias Exports = wit.my.lists.runner.Exports!(
    run
);