2024-05-12 21:14:23 +02:00
|
|
|
language = "C"
|
|
|
|
|
include_version = true
|
|
|
|
|
cpp_compat = true
|
|
|
|
|
|
2024-09-07 13:22:41 +02:00
|
|
|
autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
|
|
|
|
|
|
2024-05-12 21:14:23 +02:00
|
|
|
############################ Code Style Options ################################
|
|
|
|
|
|
|
|
|
|
braces = "SameLine"
|
|
|
|
|
line_length = 80
|
|
|
|
|
tab_width = 4
|
|
|
|
|
documentation = true
|
|
|
|
|
documentation_style = "auto"
|
|
|
|
|
documentation_length = "full"
|
|
|
|
|
line_endings = "LF"
|
|
|
|
|
|
|
|
|
|
############################# Codegen Options ##################################
|
|
|
|
|
|
2025-05-16 00:33:27 +02:00
|
|
|
style = "both"
|
2024-05-12 21:14:23 +02:00
|
|
|
usize_is_size_t = true
|
|
|
|
|
|
2025-04-12 10:54:47 +02:00
|
|
|
# this is needed because otherwise the order in the C bindings is different on different machines
|
2024-09-07 14:19:18 +02:00
|
|
|
sort_by = "Name"
|
|
|
|
|
|
2025-05-10 14:58:50 +02:00
|
|
|
include_guard = "SERVICEPOINT_BINDINGS_C"
|
|
|
|
|
|
2024-05-25 11:16:37 +02:00
|
|
|
[parse]
|
2025-04-12 10:54:47 +02:00
|
|
|
parse_deps = true
|
2025-04-12 18:49:12 +02:00
|
|
|
include = ["servicepoint", "std"]
|
2025-05-10 14:58:50 +02:00
|
|
|
extra_bindings = ["servicepoint", "servicepoint_binding_c"]
|
2024-05-25 11:16:37 +02:00
|
|
|
|
2024-05-12 21:14:23 +02:00
|
|
|
[parse.expand]
|
2025-06-16 21:26:58 +02:00
|
|
|
crates = ["servicepoint_binding_c", "paste"]
|
|
|
|
|
features = []
|
2024-09-07 13:22:41 +02:00
|
|
|
|
|
|
|
|
[export]
|
|
|
|
|
include = []
|
2025-05-05 22:55:18 +02:00
|
|
|
exclude = ["BitVec"]
|
2024-10-13 17:36:32 +02:00
|
|
|
|
2025-04-12 10:54:47 +02:00
|
|
|
[export.rename]
|
2025-05-07 22:27:06 +02:00
|
|
|
"SPCommand" = "Command"
|
|
|
|
|
"DisplayBitVec" = "BitVec"
|
2025-04-12 10:54:47 +02:00
|
|
|
|
2024-10-13 17:36:32 +02:00
|
|
|
[enum]
|
|
|
|
|
rename_variants = "QualifiedScreamingSnakeCase"
|
2025-04-12 12:19:10 +02:00
|
|
|
|
|
|
|
|
[ptr]
|
|
|
|
|
non_null_attribute = "/*notnull*/"
|