nbindgen 0.0.1

A tool for generating Nim bindings to Rust code (based on cbindgen).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
header = """
#define MUST_USE_FUNC __attribute__((warn_unused_result))
#define MUST_USE_STRUCT __attribute__((warn_unused))
#define MUST_USE_ENUM /* nothing */
"""

[fn]
must_use = "MUST_USE_FUNC"

[struct]
must_use = "MUST_USE_STRUCT"

[enum]
must_use = "MUST_USE_ENUM"