Merge pull request #38 from TheBlueMatt/main
[ldk-c-bindings] / lightning-c-bindings / cbindgen.toml
1 language = "C"
2 include_guard = "LDK_C_BINDINGS_H"
3 autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */"
4 trailer = "#include \"ldk_ver.h\""
5 include_version = true
6 namespace = "LDK"
7
8 line_length = 80
9 tab_width = 3
10
11 [export]
12 prefix = "LDK"
13
14 [fn]
15 args = "horizontal"
16 must_use = "MUST_USE_RES"
17
18 [struct]
19 must_use = "MUST_USE_STRUCT"
20
21 [enum]
22 # We use the sentinel as a flag to indicate memory freeing is not necessary.
23 add_sentinel = true
24
25 # Whether enum variant names should be prefixed with the name of the enum.
26 # default: false
27 prefix_with_name = true
28 must_use = "MUST_USE_ENUM"
29
30 [ptr]
31 non_null_attribute = "NONNULL_PTR"