-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcbindgen.toml
More file actions
35 lines (29 loc) · 888 Bytes
/
cbindgen.toml
File metadata and controls
35 lines (29 loc) · 888 Bytes
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
# Copyright 2026-Present Datadog, Inc. https://www.datadoghq.com/
# SPDX-License-Identifier: Apache-2.0
language = "C"
cpp_compat = true
tab_width = 2
header = """// Copyright 2026-Present Datadog, Inc. https://www.datadoghq.com/
// SPDX-License-Identifier: Apache-2.0
"""
include_guard = "DDOG_OTEL_THREAD_CTX_H"
style = "both"
pragma_once = true
no_includes = true
sys_includes = ["stdbool.h", "stddef.h", "stdint.h"]
[parse]
parse_deps = true
include = ["libdd-common-ffi", "libdd-otel-thread-ctx"]
[export]
prefix = "ddog_"
renaming_overrides_prefixing = true
[export.rename]
# AtomicU8 doesn't have a proper mapping, and is a Rust implementation detail.
# We map it to plain uint8_t in the C header, since it has the same
# representation.
"AtomicU8" = "uint8_t"
[export.mangle]
rename_types = "PascalCase"
[enum]
prefix_with_name = true
rename_variants = "ScreamingSnakeCase"