From 1a49a8dac11803f5c8411a1dd9a9ba9bd23f79c2 Mon Sep 17 00:00:00 2001 From: mcb2003 Date: Sat, 12 Dec 2020 21:16:55 +0000 Subject: [PATCH] FFI: Make cbindgen generate extern C block for C++, use qualified screaming snake case for enum variants. --- cbindgen.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cbindgen.toml b/cbindgen.toml index 533cc46..ddb27e5 100644 --- a/cbindgen.toml +++ b/cbindgen.toml @@ -1,7 +1,12 @@ language = "c" +cpp_compat = true include_guard = "TTS_RS_H" +header = "/* SPDXLicenseIdentifier: MIT */" autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */" +[enum] +rename_variants = "QualifiedScreamingSnakeCase" + [defines] "target_os = linux" = "__linux__" "target_os = macos" = "__APPLE__"