mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-13 18:45:44 -04:00
feat(indexeddb): put event cache store module behind feature flag
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net>
This commit is contained in:
committed by
Ivan Enderlin
parent
05b67df6e2
commit
7ffc390cea
@@ -14,7 +14,8 @@ default-target = "wasm32-unknown-unknown"
|
||||
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
|
||||
|
||||
[features]
|
||||
default = ["e2e-encryption", "state-store"]
|
||||
default = ["e2e-encryption", "state-store", "event-cache-store"]
|
||||
event-cache-store = ["dep:matrix-sdk-base"]
|
||||
state-store = ["dep:matrix-sdk-base", "growable-bloom-filter"]
|
||||
e2e-encryption = ["dep:matrix-sdk-crypto"]
|
||||
testing = ["matrix-sdk-crypto?/testing"]
|
||||
@@ -55,10 +56,17 @@ matrix-sdk-common = { workspace = true, features = ["js"] }
|
||||
matrix-sdk-crypto = { workspace = true, features = ["js", "testing"] }
|
||||
matrix-sdk-test.workspace = true
|
||||
rand.workspace = true
|
||||
tracing-subscriber = { workspace = true, features = ["registry", "tracing-log"] }
|
||||
tracing-subscriber = { workspace = true, features = [
|
||||
"registry",
|
||||
"tracing-log",
|
||||
] }
|
||||
uuid.workspace = true
|
||||
wasm-bindgen-test.workspace = true
|
||||
web-sys = { workspace = true, features = ["IdbKeyRange", "Window", "Performance"] }
|
||||
web-sys = { workspace = true, features = [
|
||||
"IdbKeyRange",
|
||||
"Window",
|
||||
"Performance",
|
||||
] }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@@ -6,6 +6,7 @@ use thiserror::Error;
|
||||
|
||||
#[cfg(feature = "e2e-encryption")]
|
||||
mod crypto_store;
|
||||
#[cfg(feature = "event-cache-store")]
|
||||
mod event_cache_store;
|
||||
mod safe_encode;
|
||||
#[cfg(feature = "e2e-encryption")]
|
||||
|
||||
Reference in New Issue
Block a user