diff --git a/crates/matrix-sdk-indexeddb/Cargo.toml b/crates/matrix-sdk-indexeddb/Cargo.toml index 5f2a6371f..f9f35d186 100644 --- a/crates/matrix-sdk-indexeddb/Cargo.toml +++ b/crates/matrix-sdk-indexeddb/Cargo.toml @@ -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 diff --git a/crates/matrix-sdk-indexeddb/src/lib.rs b/crates/matrix-sdk-indexeddb/src/lib.rs index 55cf70830..df4ee66e4 100644 --- a/crates/matrix-sdk-indexeddb/src/lib.rs +++ b/crates/matrix-sdk-indexeddb/src/lib.rs @@ -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")]