Skip to content

Commit fd18bb0

Browse files
Daniel SalinasDaniel Salinas
authored andcommitted
Set up feature flags for new indexeddb and sqlite choices
1 parent 577ba07 commit fd18bb0

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
@@ -25,17 +25,24 @@ crate-type = [
2525

2626
[features]
2727
default = ["bundled-sqlite", "unstable-msc4274"]
28-
bundled-sqlite = ["matrix-sdk/bundled-sqlite"]
28+
bundled-sqlite = ["sqlite", "matrix-sdk/bundled-sqlite"]
2929
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 = []
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.
3743
sentry = ["dep:sentry", "dep:sentry-tracing"]
3844

45+
3946
[dependencies]
4047
anyhow.workspace = true
4148
as_variant.workspace = true
@@ -50,7 +57,6 @@ matrix-sdk = { workspace = true, features = [
5057
"experimental-widgets",
5158
"markdown",
5259
"socks",
53-
"sqlite",
5460
"uniffi",
5561
] }
5662
matrix-sdk-common.workspace = true

0 commit comments

Comments
 (0)