From a8f3cff0b8ea0c1c3a84fc8008c4a599a860a509 Mon Sep 17 00:00:00 2001 From: mcb2003 Date: Tue, 28 Sep 2021 09:18:56 +0100 Subject: [PATCH] FFI: Make cbindgen an optional dependency, enabled with the ffi feature. --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c56a793..d58d3b5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 }