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