wit-bindgen-cli 0.61.0

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
17
import wit.my.inline.test;
import wit.common;

import std.meta : Repeat, AliasSeq;

@witExport("my:inline/foo@0.0.0", "bar")
struct BarImpl {
    @witExport("my:inline/foo@0.0.0", "[constructor]bar")
    static Bar constructor() {
        return Bar.makeNew((out typeof(this) self) {
        });
    }
}

alias Exports = wit.my.inline.test.Exports!(
    BarImpl
);