Skip to content

Commit 6cd9b5d

Browse files
Daniel SalinasDaniel Salinas
authored andcommitted
Set up feature flags for new indexeddb and sqlite choices
1 parent bd01cd4 commit 6cd9b5d

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

bindings/matrix-sdk-ffi/Cargo.toml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,24 @@ crate-type = ["cdylib", "staticlib"]
1818

1919
[features]
2020
default = ["bundled-sqlite", "unstable-msc4274"]
21-
bundled-sqlite = ["matrix-sdk/bundled-sqlite"]
21+
bundled-sqlite = ["sqlite", "matrix-sdk/bundled-sqlite"]
2222
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 = []
2329
# 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"]
2531
# 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"]
2733
# 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.
3036
sentry = ["dep:sentry", "dep:sentry-tracing"]
3137

38+
3239
[dependencies]
3340
anyhow.workspace = true
3441
as_variant.workspace = true
@@ -43,7 +50,6 @@ matrix-sdk = { workspace = true, features = [
4350
"experimental-widgets",
4451
"markdown",
4552
"socks",
46-
"sqlite",
4753
"uniffi",
4854
] }
4955
matrix-sdk-common.workspace = true

0 commit comments

Comments
 (0)