1
0
mirror of https://github.com/ndarilek/tts-rs.git synced 2024-11-25 11:19:37 +00:00

FFI: Make cbindgen an optional dependency, enabled with the ffi feature.

This commit is contained in:
mcb2003 2021-09-28 09:18:56 +01:00
parent 6b726463cd
commit a8f3cff0b8

View File

@ -13,7 +13,7 @@ crate-type = ["lib", "cdylib", "staticlib"]
[features] [features]
use_tolk = ["tolk"] use_tolk = ["tolk"]
ffi = [] ffi = ["cbindgen"]
[dependencies] [dependencies]
dyn-clonable = "0.9" dyn-clonable = "0.9"
@ -26,7 +26,7 @@ thiserror = "1"
env_logger = "0.8" env_logger = "0.8"
[build-dependencies] [build-dependencies]
cbindgen = "0.18.0" cbindgen = {version = "0.18.0", optional = true}
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
tolk = { version = "0.3", optional = true } tolk = { version = "0.3", optional = true }