Merge pull request #14 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 include_version = true
5 namespace = "LDK"
6
7 line_length = 80
8 tab_width = 3
9
10 [export]
11 prefix = "LDK"
12
13 [fn]
14 args = "horizontal"
15 must_use = "MUST_USE_RES"
16
17 [struct]
18 must_use = "MUST_USE_STRUCT"
19
20 [enum]
21 # We use the sentinel as a flag to indicate memory freeing is not necessary.
22 add_sentinel = true
23
24 # Whether enum variant names should be prefixed with the name of the enum.
25 # default: false
26 prefix_with_name = true
27 must_use = "MUST_USE_ENUM"
28
29 [ptr]
30 non_null_attribute = "NONNULL_PTR"