diff --git a/Cargo.lock b/Cargo.lock index 603c0e53194..99a574290ef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -92,55 +92,12 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" -[[package]] -name = "anstream" -version = "0.6.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418c75fa768af9c03be99d17643f93f79bbba589895012a80e3452a19ddda15b" -dependencies = [ - "anstyle", - "anstyle-parse", - "anstyle-query", - "anstyle-wincon", - "colorchoice", - "is_terminal_polyfill", - "utf8parse", -] - [[package]] name = "anstyle" version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd" -[[package]] -name = "anstyle-parse" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c03a11a9034d92058ceb6ee011ce58af4a9bf61491aa7e1e59ecd24bd40d22d4" -dependencies = [ - "utf8parse", -] - -[[package]] -name = "anstyle-query" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad186efb764318d35165f1758e7dcef3b10628e26d41a44bc5550652e6804391" -dependencies = [ - "windows-sys 0.52.0", -] - -[[package]] -name = "anstyle-wincon" -version = "3.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61a38449feb7068f52bb06c12759005cf459ee52bb4adc1d5a7c4322d716fb19" -dependencies = [ - "anstyle", - "windows-sys 0.52.0", -] - [[package]] name = "anyhow" version = "1.0.100" @@ -598,17 +555,6 @@ dependencies = [ "tinyvec", ] -[[package]] -name = "bstr" -version = "1.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05efc5cfd9110c8416e471df0e96702d58690178e206e61b7173706673c93706" -dependencies = [ - "memchr", - "regex-automata", - "serde", -] - [[package]] name = "bumpalo" version = "3.16.0" @@ -647,18 +593,18 @@ checksum = "00f4369ba008f82b968b1acbe31715ec37bd45236fa0726605a36cc3060ea256" [[package]] name = "camino" -version = "1.2.1" +version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "276a59bf2b2c967788139340c9f0c5b12d7fd6630315c15c217e559de85d2609" +checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48" dependencies = [ "serde_core", ] [[package]] name = "cargo-platform" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24b1f0365a6c6bb4020cd05806fd0d33c44d38046b8bd7f0e40814b9763cabfc" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" dependencies = [ "serde", ] @@ -828,7 +774,6 @@ version = "4.5.53" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d76b5d13eaa18c901fd2f7fca939fefe3a0727a953561fefdf3b2922b8569d00" dependencies = [ - "anstream", "anstyle", "clap_lex", "strsim", @@ -941,12 +886,6 @@ dependencies = [ "tracing-error", ] -[[package]] -name = "colorchoice" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422" - [[package]] name = "colored" version = "2.2.0" @@ -1307,10 +1246,6 @@ name = "decancer" version = "3.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a9244323129647178bf41ac861a2cdb9d9c81b9b09d3d0d1de9cd302b33b8a1d" -dependencies = [ - "lazy_static", - "regex", -] [[package]] name = "delegate-display" @@ -2781,12 +2716,6 @@ dependencies = [ "windows-sys 0.59.0", ] -[[package]] -name = "is_terminal_polyfill" -version = "1.70.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800" - [[package]] name = "itertools" version = "0.10.5" @@ -3314,7 +3243,6 @@ dependencies = [ "hkdf", "hmac", "http", - "indoc", "insta", "itertools 0.14.0", "js_option", @@ -4115,7 +4043,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8ed6a7761f76e3b9f92dfb0a60a6a6477c61024b775147ff0973a02653abaf2" dependencies = [ "digest", - "hmac", ] [[package]] @@ -4367,9 +4294,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.92" +version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" dependencies = [ "unicode-ident", ] @@ -5504,10 +5431,6 @@ name = "similar" version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1de1d4f81173b03af4c0cbed3c898f6bff5b870e4a7f5d6f4057d62a7a4b686e" -dependencies = [ - "bstr", - "unicode-segmentation", -] [[package]] name = "similar-asserts" @@ -6710,12 +6633,6 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" -[[package]] -name = "utf8parse" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" - [[package]] name = "uuid" version = "1.18.1" diff --git a/Cargo.toml b/Cargo.toml index f5073a1f29a..d5e03662efc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,55 +19,58 @@ resolver = "3" rust-version = "1.88" [workspace.dependencies] -anyhow = "1.0.100" -aquamarine = "0.6.0" -as_variant = "1.3.0" -assert-json-diff = "2.0.2" -assert_matches = "1.5.0" -assert_matches2 = "0.1.2" -async_cell = "0.2.3" -async-compat = "0.2.5" -async-once-cell = "0.5.4" -async-rx = "0.1.3" +anyhow = { version = "1.0.100", default-features = false } +aquamarine = { version = "0.6.0", default-features = false } +as_variant = { version = "1.3.0", default-features = false } +assert-json-diff = { version = "2.0.2", default-features = false } +assert_matches = { version = "1.5.0", default-features = false } +assert_matches2 = { version = "0.1.2", default-features = false } +async_cell = { version = "0.2.3", default-features = false } +async-compat = { version = "0.2.5", default-features = false } +async-once-cell = { version = "0.5.4", default-features = false } +async-rx = { version = "0.1.3", default-features = false } # Bumping this to 0.3.6 produces a test failure because the semantic between the # versions changed subtly: https://github.com/matrix-org/matrix-rust-sdk/issues/4599 -async-stream = "0.3.6" -async-trait = "0.1.89" -base64 = "0.22.1" -bitflags = "2.10.0" -byteorder = "1.5.0" -cfg-if = "1.0.4" -clap = "4.5.53" -chrono = "0.4.42" -dirs = "6.0.0" -eyeball = { version = "0.8.8", features = ["tracing"] } -eyeball-im = { version = "0.8.0", features = ["tracing"] } -eyeball-im-util = "0.10.0" -futures-core = "0.3.31" -futures-executor = "0.3.31" -futures-util = "0.3.31" +async-stream = { version = "0.3.6", default-features = false } +async-trait = { version = "0.1.89", default-features = false } +base64 = { version = "0.22.1", default-features = false, features = ["std"] } +bitflags = { version = "2.10.0", default-features = false } +byteorder = { version = "1.5.0", default-features = false, features = ["std"] } +cfg-if = { version = "1.0.4", default-features = false } +clap = { version = "4.5.53", default-features = false, features = ["std", "help", "usage"] } +chrono = { version = "0.4.42", default-features = false, features = ["clock", "std", "oldtime", "wasmbind"] } +dirs = { version = "6.0.0", default-features = false } +eyeball = { version = "0.8.8", default-features = false, features = ["tracing"] } +eyeball-im = { version = "0.8.0", default-features = false, features = ["tracing"] } +eyeball-im-util = { version = "0.10.0", default-features = false } +futures-core = { version = "0.3.31", default-features = false, features = ["std"] } +futures-executor = { version = "0.3.31", default-features = false, features = ["std"] } +futures-util = { version = "0.3.31", default-features = false, features = ["std"] } getrandom = { version = "0.2.15", default-features = false } -gloo-timers = "0.3.0" -growable-bloom-filter = "2.1.1" -hkdf = "0.12.4" -hmac = "0.12.1" -http = "1.3.1" -imbl = "6.1.0" -indexed_db_futures = { version = "0.7.0", package = "matrix_indexed_db_futures" } -indexmap = "2.12.1" +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 } +http = { version = "1.3.1", default-features = false } +imbl = { version = "6.1.0", default-features = false } +indexed_db_futures = { version = "0.7.0", package = "matrix_indexed_db_futures", default-features = false } +indexmap = { version = "2.12.1", default-features = false } insta = { version = "1.44.1", features = ["json", "redactions"] } -itertools = "0.14.0" -js-sys = "0.3.82" -mime = "0.3.17" +itertools = { version = "0.14.0", default-features = false, features = ["use_std"] } +js-sys = { version = "0.3.82", default-features = false, features = ["std"] } +mime = { version = "0.3.17", default-features = false } oauth2 = { version = "5.0.0", default-features = false, features = ["reqwest", "timing-resistant-secret-traits"] } -once_cell = "1.21.3" -pbkdf2 = { version = "0.12.2" } -pin-project-lite = "0.2.16" +once_cell = { version = "1.21.3", default-features = false } +pbkdf2 = { version = "0.12.2", default-features = false } +pin-project-lite = { version = "0.2.16", default-features = false } +proc-macro2 = { version = "1.0.106", default-features = false } proptest = { version = "1.6.0", default-features = false, features = ["std"] } -rand = "0.8.5" -regex = "1.12.2" +quote = { version = "1.0.37", default-features = false } +rand = { version = "0.8.5", default-features = false, features = ["std", "std_rng"] } +regex = { version = "1.12.2", default-features = false } reqwest = { version = "0.12.24", default-features = false } -rmp-serde = "1.3.0" +rmp-serde = { version = "1.3.0", default-features = false } ruma = { git = "https://github.com/ruma/ruma", rev = "d4f29e2a70dbfb0bd4fdb839ca4629794644ba97", features = [ "client-api-c", "compat-upload-signatures", @@ -91,33 +94,35 @@ ruma = { git = "https://github.com/ruma/ruma", rev = "d4f29e2a70dbfb0bd4fdb839ca "unstable-msc4310", ] } sentry = { version = "0.46.0", default-features = false } -sentry-tracing = "0.46.0" -serde = { version = "1.0.228", features = ["rc"] } -serde_html_form = "0.2.8" -serde_json = "1.0.145" -sha2 = "0.10.9" -similar-asserts = "1.7.0" -stream_assert = "0.1.1" -tempfile = "3.23.0" -thiserror = "2.0.17" +sentry-tracing = { version = "0.46.0", default-features = false } +serde = { version = "1.0.228", default-features = false, features = ["std", "rc", "derive"] } +serde_html_form = { version = "0.2.8", default-features = false } +serde_json = { version = "1.0.145", default-features = false, features = ["std"] } +sha2 = { version = "0.10.9", default-features = false } +similar-asserts = { version = "1.7.0", default-features = false } +stream_assert = { version = "0.1.1", default-features = false } +syn = { version = "2.0.43", default-features = false, features = ["derive", "parsing", "printing", "clone-impls"] } +tempfile = { version = "3.23.0", default-features = false } +thiserror = { version = "2.0.17", default-features = false } tokio = { version = "1.48.0", default-features = false, features = ["sync"] } -tokio-stream = "0.1.17" +tokio-stream = { version = "0.1.17", default-features = false } tracing = { version = "0.1.41", default-features = false, features = ["std"] } -tracing-appender = "0.2.3" -tracing-core = "0.1.34" -tracing-subscriber = "0.3.20" -unicode-normalization = "0.1.25" -uniffi = "0.31.0" -uniffi_bindgen = "0.31.0" -url = "2.5.7" -uuid = "1.18.1" -vergen-gitcl = "1.0.8" -vodozemac = { version = "0.9.0", features = ["insecure-pk-encryption"] } -wasm-bindgen = "0.2.105" -wasm-bindgen-test = "0.3.55" -web-sys = "0.3.82" -wiremock = "0.6.5" -zeroize = "1.8.2" +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, features = ["cargo-metadata"] } +uniffi_bindgen = { version = "0.31.0", default-features = false, features = ["cargo-metadata"] } +url = { version = "2.5.7", default-features = false } +uuid = { version = "1.18.1", default-features = false } +vergen-gitcl = { version = "1.0.8", default-features = false } +vodozemac = { version = "0.9.0", default-features = false, features = ["libolm-compat", "insecure-pk-encryption"] } +wasm-bindgen = { version = "0.2.105", default-features = false } +wasm-bindgen-test = { version = "0.3.55", default-features = false, features = ["std"] } +web-sys = { version = "0.3.82", default-features = false } +wiremock = { version = "0.6.5", default-features = false } +zeroize = { version = "1.8.2", default-features = false } matrix-sdk = { path = "crates/matrix-sdk", version = "0.16.0", default-features = false } matrix-sdk-base = { path = "crates/matrix-sdk-base", version = "0.16.0" } diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml index 43791ffc90c..d40cb1dc051 100644 --- a/benchmarks/Cargo.toml +++ b/benchmarks/Cargo.toml @@ -28,7 +28,7 @@ ruma.workspace = true serde.workspace = true serde_json.workspace = true tempfile.workspace = true -tokio = { workspace = true, default-features = false, features = ["rt-multi-thread"] } +tokio = { workspace = true, features = ["rt-multi-thread"] } wiremock.workspace = true [[bench]] diff --git a/bindings/matrix-sdk-crypto-ffi/Cargo.toml b/bindings/matrix-sdk-crypto-ffi/Cargo.toml index 0a197ce4674..1a482873d6a 100644 --- a/bindings/matrix-sdk-crypto-ffi/Cargo.toml +++ b/bindings/matrix-sdk-crypto-ffi/Cargo.toml @@ -51,6 +51,7 @@ zeroize = { workspace = true, features = ["zeroize_derive"] } [dependencies.js_int] version = "0.2.2" +default-features = false features = ["lax_deserialize"] [dependencies.matrix-sdk-crypto] @@ -63,12 +64,11 @@ features = ["crypto-store"] [dependencies.tokio] workspace = true -default-features = false features = ["rt-multi-thread"] [build-dependencies] -uniffi = { workspace = true, features = ["build"] } -vergen-gitcl = { workspace = true, features = ["build"] } +uniffi = { workspace = true, default-features = false, features = ["build"] } +vergen-gitcl = { workspace = true, default-features = false, features = ["build"] } [dev-dependencies] assert_matches2.workspace = true diff --git a/bindings/matrix-sdk-ffi-macros/Cargo.toml b/bindings/matrix-sdk-ffi-macros/Cargo.toml index 9a21c5b507b..1d229b8f6e5 100644 --- a/bindings/matrix-sdk-ffi-macros/Cargo.toml +++ b/bindings/matrix-sdk-ffi-macros/Cargo.toml @@ -17,9 +17,9 @@ test = false doctest = false [dependencies] -proc-macro2 = "1.0.86" -quote = "1.0.18" -syn = { version = "2.0.43", features = ["full", "extra-traits"] } +proc-macro2.workspace = true +quote.workspace = true +syn = { workspace = true, features = ["full", "extra-traits"] } [lints] workspace = true diff --git a/bindings/matrix-sdk-ffi/Cargo.toml b/bindings/matrix-sdk-ffi/Cargo.toml index f3bc87cb70e..e2bcee434d2 100644 --- a/bindings/matrix-sdk-ffi/Cargo.toml +++ b/bindings/matrix-sdk-ffi/Cargo.toml @@ -49,7 +49,7 @@ extension-trait = "1.0.2" eyeball-im.workspace = true futures-util.workspace = true language-tags = "0.3.2" -log-panics = { version = "2.1.0", features = ["with-backtrace"] } +log-panics = { version = "2.1.0", default-features = false, features = ["with-backtrace"] } matrix-sdk = { workspace = true, features = [ "anyhow", "e2e-encryption", @@ -63,7 +63,7 @@ matrix-sdk-base.workspace = true matrix-sdk-common.workspace = true matrix-sdk-ffi-macros.workspace = true matrix-sdk-ui = { workspace = true, features = ["uniffi"] } -mime = "0.3.17" +mime = { version = "0.3.17", default-features = false } once_cell.workspace = true ruma = { workspace = true, features = [ "html", @@ -91,7 +91,7 @@ ruma = { workspace = true, features = [ ] } serde.workspace = true serde_json.workspace = true -sentry = { workspace = true, optional = true, default-features = false, features = [ +sentry = { workspace = true, optional = true, features = [ # Most default features enabled otherwise. "backtrace", "contexts", @@ -106,12 +106,12 @@ tracing-appender.workspace = true tracing-core.workspace = true tracing-subscriber = { workspace = true, features = ["env-filter"] } url.workspace = true -uuid = { version = "1.4.1", features = ["v4"] } +uuid = { version = "1.4.1", default-features = false, features = ["std", "v4"] } zeroize.workspace = true oauth2.workspace = true [target.'cfg(target_family = "wasm")'.dependencies] -console_error_panic_hook = "0.1.7" +console_error_panic_hook = { version = "0.1.7", default-features = false } tokio = { workspace = true, features = ["sync", "macros"] } uniffi = { workspace = true, features = ["wasm-unstable-single-threaded"] } futures-executor.workspace = true @@ -122,7 +122,7 @@ tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } uniffi = { workspace = true, features = ["tokio"] } [target.'cfg(target_os = "android")'.dependencies] -paranoid-android = "0.2.2" +paranoid-android = { version = "0.2.2", default-features = false } [dev-dependencies] similar-asserts.workspace = true diff --git a/crates/matrix-sdk-base/Cargo.toml b/crates/matrix-sdk-base/Cargo.toml index 6a024cc48e0..bad1d96a811 100644 --- a/crates/matrix-sdk-base/Cargo.toml +++ b/crates/matrix-sdk-base/Cargo.toml @@ -70,7 +70,7 @@ assert_matches = { workspace = true, optional = true } assert_matches2 = { workspace = true, optional = true } async-trait.workspace = true bitflags = { workspace = true, features = ["serde"] } -decancer = "3.3.3" +decancer = { version = "3.3.3", default-features = false } eyeball = { workspace = true, features = ["async-lock"] } eyeball-im.workspace = true futures-util.workspace = true diff --git a/crates/matrix-sdk-crypto/Cargo.toml b/crates/matrix-sdk-crypto/Cargo.toml index 329ac8f4cf1..9b0d260b2b1 100644 --- a/crates/matrix-sdk-crypto/Cargo.toml +++ b/crates/matrix-sdk-crypto/Cargo.toml @@ -41,21 +41,21 @@ test-send-sync = [] testing = ["matrix-sdk-test"] [dependencies] -aes = "0.8.4" +aes = { version = "0.8.4", default-features = false } aquamarine.workspace = true as_variant.workspace = true async-trait.workspace = true -bs58 = { version = "0.5.1" } +bs58 = { version = "0.5.1", default-features = false, features = ["std"] } byteorder.workspace = true cfg-if.workspace = true -ctr = "0.9.2" +ctr = { version = "0.9.2", default-features = false } eyeball.workspace = true futures-core.workspace = true futures-util.workspace = true hkdf.workspace = true hmac.workspace = true itertools.workspace = true -js_option = "0.2.0" +js_option = { version = "0.2.0", default-features = false } matrix-sdk-common.workspace = true matrix-sdk-qrcode = { workspace = true, optional = true } matrix-sdk-test = { workspace = true, optional = true } # feature = testing only @@ -66,13 +66,13 @@ ruma = { workspace = true, features = ["rand", "unstable-msc3814"] } serde = { workspace = true, features = ["derive", "rc"] } serde_json.workspace = true sha2.workspace = true -subtle = "2.6.1" +subtle = { version = "2.6.1", default-features = false, features = ["std", "i128"] } thiserror.workspace = true -time = { version = "0.3.44", features = ["formatting"] } +time = { version = "0.3.44", default-features = false, features = ["std", "formatting"] } tokio.workspace = true tokio-stream = { workspace = true, features = ["sync"] } tracing = { workspace = true, features = ["attributes"] } -ulid = { version = "1.1.4" } +ulid = { version = "1.1.4", default-features = false, features = ["std"] } uniffi = { workspace = true, optional = true } url.workspace = true vodozemac.workspace = true @@ -90,7 +90,6 @@ assert_matches.workspace = true assert_matches2.workspace = true futures-executor.workspace = true http.workspace = true -indoc = "2.0.7" insta.workspace = true matrix-sdk-test.workspace = true matrix-sdk-test-utils.workspace = true diff --git a/crates/matrix-sdk-crypto/src/file_encryption/key_export.rs b/crates/matrix-sdk-crypto/src/file_encryption/key_export.rs index 0963f11b52f..d3cd530a10f 100644 --- a/crates/matrix-sdk-crypto/src/file_encryption/key_export.rs +++ b/crates/matrix-sdk-crypto/src/file_encryption/key_export.rs @@ -234,7 +234,6 @@ mod tests { io::Cursor, }; - use indoc::indoc; use matrix_sdk_test::async_test; use ruma::{room_id, user_id}; @@ -249,22 +248,22 @@ mod tests { const PASSPHRASE: &str = "1234"; - const TEST_EXPORT: &str = indoc! {" - -----BEGIN MEGOLM SESSION DATA----- - Af7mGhlzQ+eGvHu93u0YXd3D/+vYMs3E7gQqOhuCtkvGAAAAASH7pEdWvFyAP1JUisAcpEo - Xke2Q7Kr9hVl/SCc6jXBNeJCZcrUbUV4D/tRQIl3E9L4fOk928YI1J+3z96qiH0uE7hpsCI - CkHKwjPU+0XTzFdIk1X8H7sZ+MD/2Sg/q3y8rtUjz7uEj4GUTnb+9SCOTVmJsRfqgUpM1CU - bDLytHf1JkohY4tWEgpsCc67xdzgodjr12qYrfg/zNm3LGpxlrffJknw4rk5QFTj4kMbqbD - ZZgDTni+HxRTDGge2J620lMOiznvXX+H09Rwruqx5aJvvaaKd86jWRpiO2oSFqHn4u5ONl9 - 41uzm62Sj0eIm6ZbA9NQs87jQw4LxsejhZVL+NdjIg80zVSBTWhTdo0DTnbFSNP4ReOiz0U - XosOF8A5T8Vdx2nvA0GXltfcHKVKQYh/LJAkNQ7P9UYL4ae/5TtQZkhB1KxCLTRWqADCl53 - uBMGpG53EMgY6G6K2DEIOkcv7sdXQF5WpemiSWZqJRWj+cjfs9BpCTbkp/rszWFl2TniWpR - RqIbT2jORlN4rTvdtF0F4z1pqP4qWyR3sLNTkXm9CFRzWADNG0RDZKxbCoo6RPvtaCTfaHo - SwfvzBS6CjfAG+FOugpV48o7+XetaUUPZ6/tZSPhCdeV8eP9q5r0QwWeXFogzoNzWt4HYx9 - MdXxzD+f0mtg5gzehrrEEARwI2bCvPpHxlt/Na9oW/GBpkjwR1LSKgg4CtpRyWngPjdEKpZ - GYW19pdjg0qdXNk/eqZsQTsNWVo6A - -----END MEGOLM SESSION DATA----- - "}; + const TEST_EXPORT: &str = "\ + -----BEGIN MEGOLM SESSION DATA-----\n\ + Af7mGhlzQ+eGvHu93u0YXd3D/+vYMs3E7gQqOhuCtkvGAAAAASH7pEdWvFyAP1JUisAcpEo\n\ + Xke2Q7Kr9hVl/SCc6jXBNeJCZcrUbUV4D/tRQIl3E9L4fOk928YI1J+3z96qiH0uE7hpsCI\n\ + CkHKwjPU+0XTzFdIk1X8H7sZ+MD/2Sg/q3y8rtUjz7uEj4GUTnb+9SCOTVmJsRfqgUpM1CU\n\ + bDLytHf1JkohY4tWEgpsCc67xdzgodjr12qYrfg/zNm3LGpxlrffJknw4rk5QFTj4kMbqbD\n\ + ZZgDTni+HxRTDGge2J620lMOiznvXX+H09Rwruqx5aJvvaaKd86jWRpiO2oSFqHn4u5ONl9\n\ + 41uzm62Sj0eIm6ZbA9NQs87jQw4LxsejhZVL+NdjIg80zVSBTWhTdo0DTnbFSNP4ReOiz0U\n\ + XosOF8A5T8Vdx2nvA0GXltfcHKVKQYh/LJAkNQ7P9UYL4ae/5TtQZkhB1KxCLTRWqADCl53\n\ + uBMGpG53EMgY6G6K2DEIOkcv7sdXQF5WpemiSWZqJRWj+cjfs9BpCTbkp/rszWFl2TniWpR\n\ + RqIbT2jORlN4rTvdtF0F4z1pqP4qWyR3sLNTkXm9CFRzWADNG0RDZKxbCoo6RPvtaCTfaHo\n\ + SwfvzBS6CjfAG+FOugpV48o7+XetaUUPZ6/tZSPhCdeV8eP9q5r0QwWeXFogzoNzWt4HYx9\n\ + MdXxzD+f0mtg5gzehrrEEARwI2bCvPpHxlt/Na9oW/GBpkjwR1LSKgg4CtpRyWngPjdEKpZ\n\ + GYW19pdjg0qdXNk/eqZsQTsNWVo6A\n\ + -----END MEGOLM SESSION DATA-----\ + "; fn export_without_headers() -> String { TEST_EXPORT.lines().filter(|l| !l.starts_with("-----")).collect() diff --git a/crates/matrix-sdk-indexeddb/Cargo.toml b/crates/matrix-sdk-indexeddb/Cargo.toml index 62fad4b8003..b6a19d3b3d7 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 fa042ad405f..9f8675b262f 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 f2e53bf2356..1609ba1e958 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 aa7eb23e063..6fa9cdbedb1 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 8f2d7495dd5..c2fac60751c 100644 --- a/crates/matrix-sdk-ui/Cargo.toml +++ b/crates/matrix-sdk-ui/Cargo.toml @@ -34,17 +34,18 @@ experimental-encrypted-state-events = [ [dependencies] as_variant.workspace = true -async-rx.workspace = true +async-rx = { workspace = true, features = ["alloc"] } 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 975d500d456..f8ece3c0f7a 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,15 +92,15 @@ async-stream.workspace = true async-trait.workspace = true async-once-cell.workspace = true axum = { version = "0.8.4", optional = true } -bytes = "1.11.0" -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 eyre = { version = "0.6.12", optional = true } futures-core.workspace = true -futures-util.workspace = true +futures-util = { workspace = true, features = ["async-await-macro"] } http.workspace = true imbl = { workspace = true, features = ["serde"] } indexmap.workspace = true diff --git a/testing/matrix-sdk-test/Cargo.toml b/testing/matrix-sdk-test/Cargo.toml index 71d8143f235..adf622c5d8c 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] diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index eedabfee15c..0850906d13e 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -13,9 +13,9 @@ name = "xtask" test = false [dependencies] -camino = "1.0.8" +camino = { version = "1.2.2", default-features = false, features = ["serde1"] } chrono.workspace = true -clap = { version = "4.0.18", features = ["derive"] } +clap = { workspace = true, features = ["derive"] } fs_extra = "1" indexmap.workspace = true regex = "1"