| 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/eqrion/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 |
after_includes = "" |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
############################ Code Style Options ################################ |
| 33 |
|
| 34 |
braces = "SameLine" |
| 35 |
line_length = 100 |
| 36 |
tab_width = 2 |
| 37 |
documentation = true |
| 38 |
documentation_style = "auto" |
| 39 |
documentation_length = "full" |
| 40 |
line_endings = "LF" # also "CR", "CRLF", "Native" |
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
############################# Codegen Options ################################## |
| 46 |
|
| 47 |
style = "both" |
| 48 |
sort_by = "Name" # default for `fn.sort_by` and `const.sort_by` |
| 49 |
usize_is_size_t = true |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
[defines] |
| 54 |
# "target_os = freebsd" = "DEFINE_FREEBSD" |
| 55 |
# "feature = serde" = "DEFINE_SERDE" |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
[export] |
| 60 |
include = [] |
| 61 |
exclude = [] |
| 62 |
# prefix = "CAPI_" |
| 63 |
item_types = [] |
| 64 |
renaming_overrides_prefixing = false |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
[export.rename] |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
[export.body] |
| 73 |
|
| 74 |
|
| 75 |
[export.mangle] |
| 76 |
|
| 77 |
|
| 78 |
[fn] |
| 79 |
rename_args = "None" |
| 80 |
# must_use = "MUST_USE_FUNC" |
| 81 |
# no_return = "NO_RETURN" |
| 82 |
# prefix = "START_FUNC" |
| 83 |
# postfix = "END_FUNC" |
| 84 |
args = "auto" |
| 85 |
sort_by = "Name" |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
[struct] |
| 91 |
rename_fields = "None" |
| 92 |
# must_use = "MUST_USE_STRUCT" |
| 93 |
derive_constructor = false |
| 94 |
derive_eq = false |
| 95 |
derive_neq = false |
| 96 |
derive_lt = false |
| 97 |
derive_lte = false |
| 98 |
derive_gt = false |
| 99 |
derive_gte = false |
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
[enum] |
| 105 |
rename_variants = "None" |
| 106 |
# must_use = "MUST_USE_ENUM" |
| 107 |
add_sentinel = false |
| 108 |
prefix_with_name = false |
| 109 |
derive_helper_methods = false |
| 110 |
derive_const_casts = false |
| 111 |
derive_mut_casts = false |
| 112 |
# cast_assert_name = "ASSERT" |
| 113 |
derive_tagged_enum_destructor = false |
| 114 |
derive_tagged_enum_copy_constructor = false |
| 115 |
enum_class = true |
| 116 |
private_default_tagged_enum_constructor = false |
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
[const] |
| 122 |
allow_static_const = true |
| 123 |
allow_constexpr = false |
| 124 |
sort_by = "Name" |
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
[macro_expansion] |
| 130 |
bitflags = false |
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
############## Options for How Your Rust library Should Be Parsed ############## |
| 138 |
|
| 139 |
[parse] |
| 140 |
parse_deps = false |
| 141 |
# include = [] |
| 142 |
exclude = [] |
| 143 |
clean = false |
| 144 |
extra_bindings = [] |
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
[parse.expand] |
| 149 |
crates = [] |
| 150 |
all_features = false |
| 151 |
default_features = true |
| 152 |
features = [] |