@@ -25,17 +25,24 @@ crate-type = [
25
25
26
26
[features ]
27
27
default = [" bundled-sqlite" , " unstable-msc4274" ]
28
- bundled-sqlite = [" matrix-sdk/bundled-sqlite" ]
28
+ bundled-sqlite = [" sqlite " , " matrix-sdk/bundled-sqlite" ]
29
29
unstable-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 = []
30
36
# 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 " ]
32
38
# 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 " ]
34
40
# 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.
37
43
sentry = [" dep:sentry" , " dep:sentry-tracing" ]
38
44
45
+
39
46
[dependencies ]
40
47
anyhow.workspace = true
41
48
as_variant.workspace = true
@@ -50,7 +57,6 @@ matrix-sdk = { workspace = true, features = [
50
57
" experimental-widgets" ,
51
58
" markdown" ,
52
59
" socks" ,
53
- " sqlite" ,
54
60
" uniffi" ,
55
61
] }
56
62
matrix-sdk-common.workspace = true
0 commit comments