summaryrefslogtreecommitdiff
path: root/cbindgen.toml
diff options
context:
space:
mode:
Diffstat (limited to 'cbindgen.toml')
-rw-r--r--cbindgen.toml45
1 files changed, 45 insertions, 0 deletions
diff --git a/cbindgen.toml b/cbindgen.toml
new file mode 100644
index 0000000..65d71c6
--- /dev/null
+++ b/cbindgen.toml
@@ -0,0 +1,45 @@
+language = "C"
+
+documentation = true
+documentation_style = "doxy"
+
+line_length = 75
+tab_width = 2
+braces = "SameLine"
+
+header = """
+/*!
+ * This file is automatically generated by cbindgen.
+ * DO NOT EDIT THIS FILE MANUALLY.
+ *
+ * All string-returning functions allocate memory that must be freed using Butck_FreeString().
+ */
+"""
+
+include_guard = "BUTCK_H"
+
+include_version = true
+
+[parse]
+parse_deps = true
+include = ["constants"]
+extra_bindings = ["constants"]
+expand = { crates = ["constants"] }
+
+[export]
+include = ["*"]
+exclude = []
+
+[fn]
+sort_by = "Name"
+rename_args = "None"
+
+[const]
+sort_by = "Name"
+
+[struct]
+rename_fields = "None"
+
+[enum]
+rename_variants = "None"
+enum_class = false