-
Notifications
You must be signed in to change notification settings - Fork 0
/
cbindgen.toml
65 lines (51 loc) · 1.53 KB
/
cbindgen.toml
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
# 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.
#
# See https://github.com/eqrion/cbindgen/blob/master/docs.md#cbindgentoml
# for detailed documentation of every option here.
language = "C"
############## Options for Wrapping the Contents of the Header #################
header = """/**
* Keynesis C bindings
*
* Copyright 2021, Prime Type Ltd
* Licensed with: MIT OR Apache-2.0
*/"""
include_guard = "KEYNESIS_"
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
include_version = true
sys_includes = ["stdint.h"]
no_includes = true
############################ Code Style Options ################################
braces = "NextLine"
line_length = 80
tab_width = 2
documentation_style = "doxy"
############################# Codegen Options ##################################
style = "both"
[export]
item_types = []
renaming_overrides_prefixing = false
[fn]
rename_args = "None"
args = "vertical"
[struct]
rename_fields = "None"
[enum]
rename_variants = "None"
add_sentinel = false
prefix_with_name = true
derive_helper_methods = false
derive_const_casts = false
derive_mut_casts = false
derive_tagged_enum_destructor = false
derive_tagged_enum_copy_constructor = false
enum_class = true
private_default_tagged_enum_constructor = false
[const]
allow_static_const = true
allow_constexpr = true
sort_by = "Name"
[defines]
"target_os = ios" = "TARGET_OS_IOS"
"target_os = macos" = "TARGET_OS_MACOS"