cbindgen 0.29.2

A tool for generating C bindings to Rust code.
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"