@@ -18,17 +18,24 @@ crate-type = ["cdylib", "staticlib"]
18
18
19
19
[features ]
20
20
default = [" bundled-sqlite" , " unstable-msc4274" ]
21
- bundled-sqlite = [" matrix-sdk/bundled-sqlite" ]
21
+ bundled-sqlite = [" sqlite " , " matrix-sdk/bundled-sqlite" ]
22
22
unstable-msc4274 = [" matrix-sdk-ui/unstable-msc4274" ]
23
+ # Use indexeddb for session storage, supported only on Wasm platforms.
24
+ indexeddb = [" matrix-sdk/indexeddb" ]
25
+ # Use sqlite for session storage, not supported on Wasm platforms.
26
+ sqlite = [" matrix-sdk/sqlite" ]
27
+ # provide a unified API regardless of target platforms, for use with multi-target platforms like react-native
28
+ react-native = []
23
29
# Required when targeting a Javascript environment, like Wasm in a browser.
24
- js = [" matrix-sdk-ui/js" ]
30
+ js = [" matrix-sdk-ui/js" , " uuid/js " ]
25
31
# Use the TLS implementation provided by the host system, necessary on iOS and Wasm platforms.
26
- native-tls = [" matrix-sdk/native-tls" , " sentry?/native-tls" ]
32
+ native-tls = [" matrix-sdk/native-tls" , " sentry?/native-tls" , " graphql_client/reqwest " ]
27
33
# Use Rustls as the TLS implementation, necessary on Android platforms.
28
- rustls-tls = [" matrix-sdk/rustls-tls" , " sentry?/rustls" ]
29
- # Enable sentry error monitoring, not compatible with Wasm platforms.
34
+ rustls-tls = [" matrix-sdk/rustls-tls" , " sentry?/rustls" , " graphql_client/reqwest-rustls " ]
35
+ # Enable sentry error monitoring, not compatible on Wasm platforms.
30
36
sentry = [" dep:sentry" , " dep:sentry-tracing" ]
31
37
38
+
32
39
[dependencies ]
33
40
anyhow.workspace = true
34
41
as_variant.workspace = true
@@ -43,7 +50,6 @@ matrix-sdk = { workspace = true, features = [
43
50
" experimental-widgets" ,
44
51
" markdown" ,
45
52
" socks" ,
46
- " sqlite" ,
47
53
" uniffi" ,
48
54
] }
49
55
matrix-sdk-common.workspace = true
0 commit comments