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
1 changed files with 2 additions and 2 deletions

View File

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