mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-25 15:39: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]
|
[features]
|
||||||
use_tolk = ["tolk"]
|
use_tolk = ["tolk"]
|
||||||
|
ffi = ["libc"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
dyn-clonable = "0.9"
|
dyn-clonable = "0.9"
|
||||||
lazy_static = "1"
|
lazy_static = "1"
|
||||||
|
libc = {version = "0.2", optional = true}
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
thiserror = "1"
|
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;
|
use thiserror::Error;
|
||||||
|
|
||||||
mod backends;
|
mod backends;
|
||||||
|
#[cfg(feature = "ffi")]
|
||||||
|
pub mod ffi;
|
||||||
|
|
||||||
#[derive(Clone, Copy, Debug)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
pub enum Backends {
|
pub enum Backends {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user