summaryrefslogtreecommitdiff
path: root/cbindgen.toml
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-08 22:43:34 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-08 22:43:34 +0800
commit90ed18a41fef137ed0637cf9fc6aa667de2c905f (patch)
treed0e472f860ce0c771f4ae47ed35be36aa2df76b7 /cbindgen.toml
parent62fd90b639a0e24570c558738205d752d2d957bb (diff)
Update dependencies and add C bindings generation
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..d333dda
--- /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 JV_FreeString().
+ */
+"""
+
+include_guard = "JVLIB_H"
+
+include_version = true
+
+[parse]
+parse_deps = true
+include = ["constants"]
+extra_bindings = ["constants"]
+expand = { crates = ["constants"] }
+
+[export]
+include = ["JV_.*"]
+exclude = []
+
+[fn]
+sort_by = "Name"
+rename_args = "None"
+
+[const]
+sort_by = "Name"
+
+[struct]
+rename_fields = "None"
+
+[enum]
+rename_variants = "None"
+enum_class = false