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

void exports_runner_run() {
    test_resource_borrow_imported_test_own_thing_t thing = test_resource_borrow_imported_test_constructor_thing();
    assert(thing.__handle != 0);

    test_resource_borrow_imported_borrow_thing_do_borrow(
        test_resource_borrow_imported_test_borrow_thing(thing)
    );

    test_resource_borrow_imported_autodrop_borrow_thing_do_borrow(
        test_resource_borrow_imported_test_borrow_thing(thing)
    );

    test_resource_borrow_imported_test_thing_drop_own(thing);
}