@@ -25,17 +25,24 @@ crate-type = [
2525
2626[features ]
2727default = [" bundled-sqlite" , " unstable-msc4274" ]
28- bundled-sqlite = [" matrix-sdk/bundled-sqlite" ]
28+ bundled-sqlite = [" sqlite " , " matrix-sdk/bundled-sqlite" ]
2929unstable-msc4274 = [" matrix-sdk-ui/unstable-msc4274" ]
30+ # Use indexeddb for session storage, supported only on Wasm platforms.
31+ indexeddb = [" matrix-sdk/indexeddb" ]
32+ # Use sqlite for session storage, not supported on Wasm platforms.
33+ sqlite = [" matrix-sdk/sqlite" ]
34+ # provide a unified API regardless of target platforms, for use with multi-target platforms like react-native
35+ react-native = []
3036# Required when targeting a Javascript environment, like Wasm in a browser.
31- js = [" matrix-sdk-ui/js" ]
37+ js = [" matrix-sdk-ui/js" , " uuid/js " ]
3238# Use the TLS implementation provided by the host system, necessary on iOS and Wasm platforms.
33- native-tls = [" matrix-sdk/native-tls" , " sentry?/native-tls" ]
39+ native-tls = [" matrix-sdk/native-tls" , " sentry?/native-tls" , " graphql_client/reqwest " ]
3440# Use Rustls as the TLS implementation, necessary on Android platforms.
35- rustls-tls = [" matrix-sdk/rustls-tls" , " sentry?/rustls" ]
36- # Enable sentry error monitoring, not compatible with Wasm platforms.
41+ rustls-tls = [" matrix-sdk/rustls-tls" , " sentry?/rustls" , " graphql_client/reqwest-rustls " ]
42+ # Enable sentry error monitoring, not compatible on Wasm platforms.
3743sentry = [" dep:sentry" , " dep:sentry-tracing" ]
3844
45+
3946[dependencies ]
4047anyhow.workspace = true
4148as_variant.workspace = true
@@ -50,7 +57,6 @@ matrix-sdk = { workspace = true, features = [
5057 " experimental-widgets" ,
5158 " markdown" ,
5259 " socks" ,
53- " sqlite" ,
5460 " uniffi" ,
5561] }
5662matrix-sdk-common.workspace = true
0 commit comments