mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-26 18:20:40 -04:00
sdk: Add uniffi scaffolding.
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -3024,6 +3024,7 @@ dependencies = [
|
||||
"tower",
|
||||
"tracing",
|
||||
"tracing-subscriber",
|
||||
"uniffi",
|
||||
"url",
|
||||
"urlencoding",
|
||||
"uuid",
|
||||
|
||||
@@ -69,6 +69,7 @@ features = [
|
||||
"rustls-tls", # note: differ from block below
|
||||
"socks",
|
||||
"sqlite",
|
||||
"uniffi",
|
||||
]
|
||||
|
||||
[target.'cfg(not(target_os = "android"))'.dependencies.matrix-sdk]
|
||||
@@ -83,4 +84,5 @@ features = [
|
||||
"native-tls", # note: differ from block above
|
||||
"socks",
|
||||
"sqlite",
|
||||
"uniffi",
|
||||
]
|
||||
|
||||
@@ -41,6 +41,8 @@ sso-login = ["dep:hyper", "dep:rand", "dep:tower"]
|
||||
image-proc = ["dep:image"]
|
||||
image-rayon = ["image-proc", "image?/jpeg_rayon"]
|
||||
|
||||
uniffi = ["dep:uniffi"]
|
||||
|
||||
experimental-oidc = [
|
||||
"ruma/unstable-msc2967",
|
||||
"dep:chrono",
|
||||
@@ -101,6 +103,7 @@ thiserror = { workspace = true }
|
||||
tokio-stream = { workspace = true, features = ["sync"] }
|
||||
tower = { version = "0.4.13", features = ["make"], optional = true }
|
||||
tracing = { workspace = true, features = ["attributes"] }
|
||||
uniffi = { workspace = true, optional = true }
|
||||
url = "2.2.2"
|
||||
urlencoding = "2.1.3"
|
||||
uuid = { version = "1.4.1", features = ["serde", "v4"], optional = true }
|
||||
|
||||
@@ -82,6 +82,9 @@ pub use sliding_sync::{
|
||||
SlidingSyncListLoadingState, SlidingSyncMode, SlidingSyncRoom, UpdateSummary,
|
||||
};
|
||||
|
||||
#[cfg(feature = "uniffi")]
|
||||
uniffi::setup_scaffolding!();
|
||||
|
||||
#[cfg(any(test, feature = "testing"))]
|
||||
pub mod test_utils;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user