FFI: Add cbindgen config for generation of C/C++ headers.

This commit is contained in:
mcb2003 2020-12-12 16:35:08 +00:00 committed by michael Connor buchan
parent 8e86afb444
commit 3b1994ab36
1 changed files with 8 additions and 0 deletions

8
cbindgen.toml Normal file
View File

@ -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__"