diff --git a/Cargo.toml b/Cargo.toml index fd7424c..c5f70d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,10 +13,12 @@ crate-type = ["lib", "cdylib", "staticlib"] [features] use_tolk = ["tolk"] +ffi = ["libc"] [dependencies] dyn-clonable = "0.9" lazy_static = "1" +libc = {version = "0.2", optional = true} log = "0.4" thiserror = "1" diff --git a/src/ffi.rs b/src/ffi.rs new file mode 100644 index 0000000..e69de29 diff --git a/src/lib.rs b/src/lib.rs index 820ccd3..9256a53 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,6 +28,8 @@ use objc::{class, msg_send, sel, sel_impl}; use thiserror::Error; mod backends; +#[cfg(feature = "ffi")] +pub mod ffi; #[derive(Clone, Copy, Debug)] pub enum Backends {