FFI: Create ffi Cargo feature and include ffi module.

This commit is contained in:
mcb2003 2020-12-12 00:23:36 +00:00
parent 6d17447350
commit a3a871716f
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

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