Debian Codegraph @

test cases/rust/44 cbindgen/config.toml

raw
1 # This is a template cbindgen.toml file with all of the default values.
2 # Some values are commented out because their absence is the real default.
3 #
4 # See https://github.com/mozilla/cbindgen/blob/master/docs.md#cbindgentoml
5 # for detailed documentation of every option here.
6
7
8
9 language = "C++"
10
11
12
13 ############## Options for Wrapping the Contents of the Header #################
14
15 # header = "/* Text to put at the beginning of the generated file. Probably a license. */"
16 # trailer = "/* Text to put at the end of the generated file */"
17 # include_guard = "my_bindings_h"
18 pragma_once = true
19 # autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
20 include_version = false
21 # namespace = "my_namespace"
22 namespaces = []
23 using_namespaces = []
24 sys_includes = []
25 includes = []
26 no_includes = false
27 # cpp_compat = true
28 after_includes = ""
29
30
31
32
33 ############################ Code Style Options ################################
34
35 braces = "SameLine"
36 line_length = 100
37 tab_width = 2
38 documentation = true
39 documentation_style = "auto"
40 documentation_length = "full"
41 line_endings = "LF" # also "CR", "CRLF", "Native"
42
43
44
45
46 ############################# Codegen Options ##################################
47
48 style = "both"
49 sort_by = "Name" # default for `fn.sort_by` and `const.sort_by`
50 usize_is_size_t = true
51
52
53
54 [defines]
55 # "target_os = freebsd" = "DEFINE_FREEBSD"
56 # "feature = serde" = "DEFINE_SERDE"
57
58
59
60 [export]
61 include = []
62 exclude = []
63 # prefix = "CAPI_"
64 item_types = []
65 renaming_overrides_prefixing = false
66
67
68
69 [export.rename]
70
71
72
73 [export.body]
74
75
76 [export.mangle]
77
78
79 [fn]
80 rename_args = "None"
81 # must_use = "MUST_USE_FUNC"
82 # deprecated = "DEPRECATED_FUNC"
83 # deprecated_with_note = "DEPRECATED_FUNC_WITH_NOTE"
84 # no_return = "NO_RETURN"
85 # prefix = "START_FUNC"
86 # postfix = "END_FUNC"
87 args = "auto"
88 sort_by = "Name"
89
90
91
92
93 [struct]
94 rename_fields = "None"
95 # must_use = "MUST_USE_STRUCT"
96 # deprecated = "DEPRECATED_STRUCT"
97 # deprecated_with_note = "DEPRECATED_STRUCT_WITH_NOTE"
98 derive_constructor = false
99 derive_eq = false
100 derive_neq = false
101 derive_lt = false
102 derive_lte = false
103 derive_gt = false
104 derive_gte = false
105
106
107
108
109 [enum]
110 rename_variants = "None"
111 # must_use = "MUST_USE_ENUM"
112 # deprecated = "DEPRECATED_ENUM"
113 # deprecated_with_note = "DEPRECATED_ENUM_WITH_NOTE"
114 add_sentinel = false
115 prefix_with_name = false
116 derive_helper_methods = false
117 derive_const_casts = false
118 derive_mut_casts = false
119 # cast_assert_name = "ASSERT"
120 derive_tagged_enum_destructor = false
121 derive_tagged_enum_copy_constructor = false
122 enum_class = true
123 private_default_tagged_enum_constructor = false
124
125
126
127
128 [const]
129 allow_static_const = true
130 allow_constexpr = false
131 sort_by = "Name"
132
133
134
135
136 [macro_expansion]
137 bitflags = false
138
139
140
141
142
143
144 ############## Options for How Your Rust library Should Be Parsed ##############
145
146 [parse]
147 parse_deps = false
148 # include = []
149 exclude = []
150 clean = false
151 extra_bindings = []
152
153
154
155 [parse.expand]
156 crates = []
157 all_features = false
158 default_features = true
159 features = []