-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcbindgen.toml
More file actions
77 lines (63 loc) · 1.76 KB
/
Copy pathcbindgen.toml
File metadata and controls
77 lines (63 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# cbindgen.toml - Configuration for C++ header generation
# The language to output bindings for.
language = "C"
# Options for how the generated header should be formatted.
[cpp]
# Whether to use pragma once or include guards.
pragma_once = true
# Whether to add include guards.
include_guard = "RENOIR_H"
# Whether to enable C++ compatibility.
cpp_compat = true
# Options for how the generated code is laid out.
[style]
# The string to use for indentation. Can be a sequence of any character.
indent = " "
# The line ending to use for the generated file.
line_ending = "LF"
# Options for what to generate bindings for.
[export]
# A list of names of items to generate bindings for.
include = [
"SharedMemoryRegion",
"TopicBuffer",
"SPSCTopicRing",
"MPMCTopicRing",
"EventNotification",
"RenoirError",
"RegionConfig",
"Message",
"MessageHeader"
]
# Exclude internal types and test utilities
exclude = [
"Test*",
"*Test",
"*_test_*"
]
# Options for renaming items.
[rename]
# Rules for renaming enum variants.
"RenoirError" = "renoir_error_t"
"RegionConfig" = "renoir_region_config_t"
"Message" = "renoir_message_t"
"MessageHeader" = "renoir_message_header_t"
# Documentation options.
[documentation]
# Whether to include documentation.
enabled = true
# The style of documentation to generate.
style = "c99"
# Preprocessor options.
[defines]
# Additional #defines to be included.
"RENOIR_VERSION_MAJOR" = "0"
"RENOIR_VERSION_MINOR" = "1"
"RENOIR_VERSION_PATCH" = "0"
# Platform-specific configuration
[target."cfg(target_os = \"linux\")"]
# Linux-specific exports
include = ["eventfd_support"]
[target."cfg(unix)"]
# Unix-specific exports
include = ["posix_support"]