feat(indexeddb): put event cache store module behind feature flag

Signed-off-by: Michael Goldenberg <m@mgoldenberg.net>
This commit is contained in:
Michael Goldenberg
2025-05-29 18:18:29 -04:00
committed by Ivan Enderlin
parent 05b67df6e2
commit 7ffc390cea
2 changed files with 12 additions and 3 deletions

View File

@@ -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

View File

@@ -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")]