From 7c5ceb2bd3587cadb99127dee205920139de0075 Mon Sep 17 00:00:00 2001 From: mcb2003 Date: Sat, 12 Dec 2020 16:35:08 +0000 Subject: [PATCH] FFI: Add cbindgen config for generation of C/C++ headers. --- cbindgen.toml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 cbindgen.toml diff --git a/cbindgen.toml b/cbindgen.toml new file mode 100644 index 0000000..7b647ff --- /dev/null +++ b/cbindgen.toml @@ -0,0 +1,8 @@ +include_guard = "TTS_RS_H" +autogen_warning = "/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */" + +[defines] +"target_os = linux" = "__linux__" +"target_os = macos" = "__APPLE__" +"target_arch = wasm32" = "__EMSCRIPTEN__" +windows = "__WIN32__"