2019-06-11 19:43:16 -04:00
|
|
|
# This is a template cbindgen.toml file with all of the default values.
|
|
|
|
# Some values are commented out because their absence is the real default.
|
|
|
|
#
|
2023-09-07 14:50:34 -07:00
|
|
|
# See https://github.com/mozilla/cbindgen/blob/master/docs.md#cbindgentoml
|
2019-06-11 19:43:16 -04:00
|
|
|
# for detailed documentation of every option here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
language = "C++"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############## Options for Wrapping the Contents of the Header #################
|
|
|
|
|
|
|
|
# header = "/* Text to put at the beginning of the generated file. Probably a license. */"
|
|
|
|
# trailer = "/* Text to put at the end of the generated file */"
|
|
|
|
# include_guard = "my_bindings_h"
|
2020-04-12 02:43:10 +03:00
|
|
|
# pragma_once = true
|
2019-06-11 19:43:16 -04:00
|
|
|
# autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
|
|
|
|
include_version = false
|
|
|
|
# namespace = "my_namespace"
|
|
|
|
namespaces = []
|
2019-08-25 18:19:05 +02:00
|
|
|
using_namespaces = []
|
2019-06-11 19:43:16 -04:00
|
|
|
sys_includes = []
|
|
|
|
includes = []
|
|
|
|
no_includes = false
|
2024-04-15 10:25:57 +02:00
|
|
|
# cpp_compat = true
|
2019-11-24 11:28:40 +01:00
|
|
|
after_includes = ""
|
2019-06-11 19:43:16 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############################ Code Style Options ################################
|
|
|
|
|
|
|
|
braces = "SameLine"
|
|
|
|
line_length = 100
|
|
|
|
tab_width = 2
|
2021-02-01 13:46:13 +01:00
|
|
|
documentation = true
|
2019-06-11 19:43:16 -04:00
|
|
|
documentation_style = "auto"
|
2021-09-15 17:25:12 -07:00
|
|
|
documentation_length = "full"
|
2021-01-04 15:41:50 +01:00
|
|
|
line_endings = "LF" # also "CR", "CRLF", "Native"
|
2019-06-11 19:43:16 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############################# Codegen Options ##################################
|
|
|
|
|
|
|
|
style = "both"
|
2020-10-03 19:40:39 +03:00
|
|
|
sort_by = "Name" # default for `fn.sort_by` and `const.sort_by`
|
2020-10-22 00:10:29 +03:00
|
|
|
usize_is_size_t = true
|
2019-06-11 19:43:16 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[defines]
|
|
|
|
# "target_os = freebsd" = "DEFINE_FREEBSD"
|
|
|
|
# "feature = serde" = "DEFINE_SERDE"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[export]
|
|
|
|
include = []
|
|
|
|
exclude = []
|
|
|
|
# prefix = "CAPI_"
|
|
|
|
item_types = []
|
|
|
|
renaming_overrides_prefixing = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[export.rename]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[export.body]
|
|
|
|
|
|
|
|
|
2020-09-22 12:01:47 +02:00
|
|
|
[export.mangle]
|
2019-06-11 19:43:16 -04:00
|
|
|
|
|
|
|
|
|
|
|
[fn]
|
|
|
|
rename_args = "None"
|
|
|
|
# must_use = "MUST_USE_FUNC"
|
2023-07-23 07:31:55 +09:00
|
|
|
# deprecated = "DEPRECATED_FUNC"
|
|
|
|
# deprecated_with_note = "DEPRECATED_FUNC_WITH_NOTE"
|
2020-07-24 22:42:20 +02:00
|
|
|
# no_return = "NO_RETURN"
|
2019-06-11 19:43:16 -04:00
|
|
|
# prefix = "START_FUNC"
|
|
|
|
# postfix = "END_FUNC"
|
|
|
|
args = "auto"
|
2020-01-26 13:25:33 +01:00
|
|
|
sort_by = "Name"
|
2019-06-11 19:43:16 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[struct]
|
|
|
|
rename_fields = "None"
|
|
|
|
# must_use = "MUST_USE_STRUCT"
|
2023-07-23 07:31:55 +09:00
|
|
|
# deprecated = "DEPRECATED_STRUCT"
|
|
|
|
# deprecated_with_note = "DEPRECATED_STRUCT_WITH_NOTE"
|
2019-06-11 19:43:16 -04:00
|
|
|
derive_constructor = false
|
|
|
|
derive_eq = false
|
|
|
|
derive_neq = false
|
|
|
|
derive_lt = false
|
|
|
|
derive_lte = false
|
|
|
|
derive_gt = false
|
|
|
|
derive_gte = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[enum]
|
|
|
|
rename_variants = "None"
|
|
|
|
# must_use = "MUST_USE_ENUM"
|
2023-07-23 07:31:55 +09:00
|
|
|
# deprecated = "DEPRECATED_ENUM"
|
|
|
|
# deprecated_with_note = "DEPRECATED_ENUM_WITH_NOTE"
|
2019-06-11 19:43:16 -04:00
|
|
|
add_sentinel = false
|
|
|
|
prefix_with_name = false
|
|
|
|
derive_helper_methods = false
|
|
|
|
derive_const_casts = false
|
|
|
|
derive_mut_casts = false
|
|
|
|
# cast_assert_name = "ASSERT"
|
|
|
|
derive_tagged_enum_destructor = false
|
|
|
|
derive_tagged_enum_copy_constructor = false
|
2019-12-29 18:39:12 +13:00
|
|
|
enum_class = true
|
2019-08-09 15:09:04 +02:00
|
|
|
private_default_tagged_enum_constructor = false
|
2019-06-11 19:43:16 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[const]
|
|
|
|
allow_static_const = true
|
2020-03-03 21:15:27 +01:00
|
|
|
allow_constexpr = false
|
2020-10-03 19:40:39 +03:00
|
|
|
sort_by = "Name"
|
2019-06-11 19:43:16 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[macro_expansion]
|
|
|
|
bitflags = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
############## Options for How Your Rust library Should Be Parsed ##############
|
|
|
|
|
|
|
|
[parse]
|
|
|
|
parse_deps = false
|
|
|
|
# include = []
|
|
|
|
exclude = []
|
|
|
|
clean = false
|
2019-06-25 21:33:19 +02:00
|
|
|
extra_bindings = []
|
2019-06-11 19:43:16 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[parse.expand]
|
|
|
|
crates = []
|
|
|
|
all_features = false
|
|
|
|
default_features = true
|
|
|
|
features = []
|