mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-25 11:59:38 +00:00
FFI: Create ffi Cargo feature and include ffi module.
This commit is contained in:
parent
6d17447350
commit
a3a871716f
|
@ -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
0
src/ffi.rs
Normal 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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user