language = "C"
pragma_once = false
include_guard = "TINYQUANT_H"
cpp_compat = true
include_version = true
tab_width = 4
documentation = true
documentation_style = "doxy"
style = "type"
sort_by = "Name"
header = """
/*
* tinyquant.h — generated by cbindgen from tinyquant-sys.
*
* DO NOT EDIT BY HAND. Regenerate with:
* cargo build -p tinyquant-sys
*
* CI gate: `git diff --exit-code rust/crates/tinyquant-sys/include/tinyquant.h`.
*/
#define TINYQUANT_H_VERSION "@version@"
"""
autogen_warning = "/* WARNING: regenerate this file via `cargo build -p tinyquant-sys`. */"
[parse]
parse_deps = false
[export]
exclude = ["tq_test_panic", "tinyquant_version"]
[export.rename]
"TinyQuantErrorKind" = "TinyQuantErrorKind"
"TinyQuantError" = "TinyQuantError"
"TinyQuantCompressionPolicy" = "TinyQuantCompressionPolicy"
[enum]
prefix_with_name = true
rename_variants = "ScreamingSnakeCase"