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