FFI: Create ffi Cargo feature and include ffi module.

This commit is contained in:
mcb2003 2020-12-12 00:23:36 +00:00 committed by michael Connor buchan
parent 3e1f5af61a
commit 0ca3100a97
3 changed files with 4 additions and 0 deletions

View File

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

0
src/ffi.rs Normal file
View File

View File

@ -29,6 +29,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 {