alef 0.79.4

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Service: {{ service_name }}
// extern uint64_t {{ new_symbol }}(void);
// extern void {{ free_symbol }}(uint64_t handle);
{% for registration in registrations %}
// extern int {{ registration.symbol }}(
//     uint64_t owner,
//     char* (*callback)(void*, const char*),
//     void (*response_free)(char*),
//     void* context{% for param in registration.params %},
//     {{ param.c_type }} {{ param.name }}{% endfor +%}
// );
{% endfor %}
{% for entrypoint in entrypoints %}
// extern {{ entrypoint.return_c_type }} {{ entrypoint.symbol }}(
//     uint64_t owner{% for param in entrypoint.params %},
//     {{ param.c_type }} {{ param.name }}{% endfor +%}
// );
{% endfor %}