From 3ff9b55077433bb3e823687c4b9e4bec17016cb5 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Tue, 3 Feb 2026 14:26:58 +0100 Subject: [PATCH] chore: Add more `default-features = false` to more deps. --- Cargo.toml | 2 ++ crates/matrix-sdk-indexeddb/Cargo.toml | 4 ++-- crates/matrix-sdk-search/Cargo.toml | 6 +++--- crates/matrix-sdk-sqlite/Cargo.toml | 10 +++++----- crates/matrix-sdk-store-encryption/Cargo.toml | 4 ++-- crates/matrix-sdk-ui/Cargo.toml | 7 +++---- crates/matrix-sdk/Cargo.toml | 8 ++++---- testing/matrix-sdk-test/Cargo.toml | 2 +- 8 files changed, 22 insertions(+), 21 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8a42bcfc7..e2328c702 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,6 +48,7 @@ futures-executor = { version = "0.3.31", default-features = false, features = [" futures-util = { version = "0.3.31", default-features = false, features = ["std"] } getrandom = { version = "0.2.15", default-features = false } gloo-timers = { version = "0.3.0", default-features = false } +gloo-utils = { version = "0.2.0", default-features = false, features = ["serde"] } growable-bloom-filter = { version = "2.1.1", default-features = false } hkdf = { version = "0.12.4", default-features = false } hmac = { version = "0.12.1", default-features = false } @@ -110,6 +111,7 @@ tracing-appender = { version = "0.2.3", default-features = false } tracing-core = { version = "0.1.34", default-features = false } tracing-subscriber = { version = "0.3.20", default-features = false, features = ["std", "smallvec", "fmt"] } unicode-normalization = { version = "0.1.25", default-features = false } +unicode-segmentation = { version = "1.12.0", default-features = false } uniffi = { version = "0.31.0", default-features = false } uniffi_bindgen = { version = "0.31.0", default-features = false } url = { version = "2.5.7", default-features = false } diff --git a/crates/matrix-sdk-indexeddb/Cargo.toml b/crates/matrix-sdk-indexeddb/Cargo.toml index 62fad4b80..b6a19d3b3 100644 --- a/crates/matrix-sdk-indexeddb/Cargo.toml +++ b/crates/matrix-sdk-indexeddb/Cargo.toml @@ -31,7 +31,7 @@ experimental-encrypted-state-events = [ async-trait.workspace = true base64.workspace = true futures-util.workspace = true -gloo-utils = { version = "0.2.0", features = ["serde"] } +gloo-utils.workspace = true growable-bloom-filter = { workspace = true, optional = true } hkdf.workspace = true indexed_db_futures = { workspace = true, features = [ @@ -47,7 +47,7 @@ matrix-sdk-store-encryption.workspace = true rmp-serde.workspace = true ruma.workspace = true serde.workspace = true -serde-wasm-bindgen = "0.6.5" +serde-wasm-bindgen = { version = "0.6.5", default-features = false } serde_json.workspace = true sha2.workspace = true thiserror.workspace = true diff --git a/crates/matrix-sdk-search/Cargo.toml b/crates/matrix-sdk-search/Cargo.toml index fa042ad40..9f8675b26 100644 --- a/crates/matrix-sdk-search/Cargo.toml +++ b/crates/matrix-sdk-search/Cargo.toml @@ -15,16 +15,16 @@ all-features = true rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] [dependencies] -aes = { version = "0.8.4" } +aes = { version = "0.8.4", default-features = false } byteorder.workspace = true -ctr = { version = "0.9.2" } +ctr = { version = "0.9.2", default-features = false} hmac = { workspace = true, features = ["reset"] } hkdf.workspace = true matrix-sdk-test = { workspace = true, optional = true } pbkdf2.workspace = true rand.workspace = true sha2.workspace = true -tantivy = "0.25.0" +tantivy = { version = "0.25.0", default-features = false, features = ["mmap", "stopwords", "lz4-compression", "columnar-zstd-compression"] } tracing = { workspace = true, features = ["attributes"] } thiserror.workspace = true ruma = { workspace = true , features = [ diff --git a/crates/matrix-sdk-sqlite/Cargo.toml b/crates/matrix-sdk-sqlite/Cargo.toml index f2e53bf23..1609ba1e9 100644 --- a/crates/matrix-sdk-sqlite/Cargo.toml +++ b/crates/matrix-sdk-sqlite/Cargo.toml @@ -26,19 +26,19 @@ experimental-encrypted-state-events = [ [dependencies] as_variant.workspace = true async-trait.workspace = true -deadpool = { version = "0.12.3", features = ["rt_tokio_1"] } -deadpool-sync = "0.1.4" +deadpool = { version = "0.12.3", default-features = false, features = ["managed", "rt_tokio_1"] } +deadpool-sync = { version = "0.1.4", default-features = false } itertools.workspace = true matrix-sdk-base = { workspace = true, optional = true } matrix-sdk-crypto = { workspace = true, optional = true } matrix-sdk-store-encryption.workspace = true -num_cpus = "1.17.0" +num_cpus = { version = "1.17.0", default-features = false } rmp-serde.workspace = true ruma.workspace = true -rusqlite = { version = "0.37.0", features = ["limits"] } +rusqlite = { version = "0.37.0", default-features = false, features = ["limits"] } serde.workspace = true serde_json.workspace = true -serde_path_to_error = "0.1.20" +serde_path_to_error = { version = "0.1.20", default-features = false } thiserror.workspace = true tokio = { workspace = true, features = ["fs"] } tracing.workspace = true diff --git a/crates/matrix-sdk-store-encryption/Cargo.toml b/crates/matrix-sdk-store-encryption/Cargo.toml index aa7eb23e0..6fa9cdbed 100644 --- a/crates/matrix-sdk-store-encryption/Cargo.toml +++ b/crates/matrix-sdk-store-encryption/Cargo.toml @@ -18,8 +18,8 @@ js = ["dep:getrandom", "getrandom?/js"] [dependencies] base64.workspace = true -blake3 = "1.8.2" -chacha20poly1305 = { version = "0.10.1", features = ["std"] } +blake3 = { version = "1.8.2", default-features = false } +chacha20poly1305 = { version = "0.10.1", default-features = false, features = ["std"] } getrandom = { workspace = true, optional = true } hmac.workspace = true pbkdf2.workspace = true diff --git a/crates/matrix-sdk-ui/Cargo.toml b/crates/matrix-sdk-ui/Cargo.toml index d7aefbc19..c2fac6075 100644 --- a/crates/matrix-sdk-ui/Cargo.toml +++ b/crates/matrix-sdk-ui/Cargo.toml @@ -39,12 +39,13 @@ async-stream.workspace = true async_cell.workspace = true bitflags.workspace = true chrono.workspace = true +emojis = { version = "0.8.0", default-features = false } eyeball.workspace = true eyeball-im.workspace = true eyeball-im-util.workspace = true futures-core.workspace = true futures-util.workspace = true -fuzzy-matcher = "0.3.7" +fuzzy-matcher = { version = "0.3.7", default-features = false } growable-bloom-filter.workspace = true imbl = { workspace = true, features = ["serde"] } indexmap.workspace = true @@ -63,11 +64,9 @@ tokio.workspace = true tokio-stream = { workspace = true, features = ["sync"] } tracing = { workspace = true, features = ["attributes"] } unicode-normalization.workspace = true +unicode-segmentation.workspace = true uniffi = { workspace = true, optional = true } -emojis = "0.8.0" -unicode-segmentation = "1.12.0" - [dev-dependencies] anyhow.workspace = true assert-json-diff.workspace = true diff --git a/crates/matrix-sdk/Cargo.toml b/crates/matrix-sdk/Cargo.toml index 13da04778..f8ece3c0f 100644 --- a/crates/matrix-sdk/Cargo.toml +++ b/crates/matrix-sdk/Cargo.toml @@ -83,7 +83,7 @@ experimental-element-recent-emojis = ["matrix-sdk-base/experimental-element-rece [dependencies] anyhow = { workspace = true, optional = true } -anymap2 = "0.13.0" +anymap2 = { version = "0.13.0", default-features = false } aquamarine.workspace = true as_variant.workspace = true assert_matches2 = { workspace = true, optional = true } @@ -92,9 +92,9 @@ async-stream.workspace = true async-trait.workspace = true async-once-cell.workspace = true axum = { version = "0.8.4", optional = true } -bytes = "1.11.1" -bytesize = "2.3.0" -cfg-if = "1.0.4" +bytes = { version = "1.11.1", default-features = false, features = ["std"] } +bytesize = { version = "2.3.0", default-features = false, features = ["std"] } +cfg-if.workspace = true event-listener = "5.4.1" eyeball.workspace = true eyeball-im.workspace = true diff --git a/testing/matrix-sdk-test/Cargo.toml b/testing/matrix-sdk-test/Cargo.toml index 71d8143f2..adf622c5d 100644 --- a/testing/matrix-sdk-test/Cargo.toml +++ b/testing/matrix-sdk-test/Cargo.toml @@ -39,7 +39,7 @@ tracing-subscriber = { workspace = true, features = ["env-filter"] } wiremock.workspace = true [target.'cfg(target_family = "wasm")'.dependencies] -getrandom = { version = "0.2.6", default-features = false, features = ["js"] } +getrandom = { workspace = true, features = ["js"] } wasm-bindgen-test.workspace = true [lints]