sdk: Add uniffi scaffolding.

This commit is contained in:
Doug
2024-01-25 17:15:06 +00:00
committed by Benjamin Bouvier
parent eccfab8b27
commit be8be9ef04
4 changed files with 9 additions and 0 deletions

1
Cargo.lock generated
View File

@@ -3024,6 +3024,7 @@ dependencies = [
"tower",
"tracing",
"tracing-subscriber",
"uniffi",
"url",
"urlencoding",
"uuid",

View File

@@ -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",
]

View File

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

View File

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