alef 0.62.12

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
        .free_string = struct {
            fn thunk(ptr: [*c]u8) callconv(.c) void {
                if (ptr != null) std.heap.c_allocator.free(std.mem.span(ptr));
            }
        }.thunk,
        .free_user_data = struct {
            fn thunk(user_data: ?*anyopaque) callconv(.c) void {
                _ = user_data;
            }
        }.thunk,