wit-bindgen-cli 0.57.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
#include <leaf_cpp.h>

using namespace test::common::test_types;

R1 exports::test::common::to_test::Wrap(F1 flag) {
    if (flag == F1::kA) {
        return R1{ 1, flag };
    } else {
        return R1{ 2, flag };
    }
}

V1 exports::test::common::to_test::VarF(void) {
    return V1(V1::B(42));
}