0
0
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:
Alex Konradi 2024-07-15 14:57:40 -04:00 committed by GitHub
parent 535241d423
commit eea07a5638
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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" }

View File

@ -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::*;