mirror of
https://github.com/signalapp/libsignal.git
synced 2024-09-19 19:42:19 +02:00
Include -testing fns in FFI on testing-fns feature
This commit is contained in:
parent
535241d423
commit
eea07a5638
@ -18,11 +18,11 @@ crate-type = ["staticlib"]
|
||||
# Testing the Swift side of this requires compiling with SIGNAL_MEDIA_SUPPORTED enabled for both Swift and C:
|
||||
# swift test -Xswiftc -DSIGNAL_MEDIA_SUPPORTED -Xcc -DSIGNAL_MEDIA_SUPPORTED
|
||||
signal-media = ["libsignal-bridge/signal-media"]
|
||||
testing-fns = ["libsignal-bridge/testing-fns"]
|
||||
testing-fns = ["libsignal-bridge/testing-fns", "dep:libsignal-bridge-testing"]
|
||||
|
||||
[dependencies]
|
||||
libsignal-bridge = { path = "../shared", features = ["ffi"] }
|
||||
libsignal-bridge-testing = { path = "../shared/testing", features = ["ffi"] }
|
||||
libsignal-bridge-testing = { path = "../shared/testing", features = ["ffi"], optional = true }
|
||||
libsignal-net = { path = "../../net" }
|
||||
libsignal-protocol = { path = "../../protocol" }
|
||||
signal-media = { path = "../../media" }
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
use futures_util::FutureExt;
|
||||
use libsignal_bridge::ffi::*;
|
||||
#[cfg(feature = "testing-fns")]
|
||||
#[allow(unused_imports)]
|
||||
use libsignal_bridge_testing::*;
|
||||
use libsignal_protocol::*;
|
||||
|
Loading…
Reference in New Issue
Block a user