From 3aa356dcd67ee4605f1184d7c71eab9d533f2c2d Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 22 May 2025 22:18:01 +0200 Subject: [PATCH] chore: Use shorter syntax for workspace inheritance where possible --- benchmarks/Cargo.toml | 18 ++--- bindings/matrix-sdk-crypto-ffi/Cargo.toml | 26 +++---- bindings/matrix-sdk-ffi-macros/Cargo.toml | 2 +- bindings/matrix-sdk-ffi/Cargo.toml | 28 ++++---- crates/matrix-sdk-base/Cargo.toml | 44 ++++++------ crates/matrix-sdk-common/Cargo.toml | 34 ++++----- crates/matrix-sdk-crypto/Cargo.toml | 66 ++++++++--------- crates/matrix-sdk-indexeddb/Cargo.toml | 44 ++++++------ crates/matrix-sdk-qrcode/Cargo.toml | 10 +-- crates/matrix-sdk-sqlite/Cargo.toml | 36 +++++----- crates/matrix-sdk-store-encryption/Cargo.toml | 20 +++--- crates/matrix-sdk-ui/Cargo.toml | 66 ++++++++--------- crates/matrix-sdk/Cargo.toml | 72 +++++++++---------- examples/autojoin/Cargo.toml | 4 +- examples/backups/Cargo.toml | 8 +-- examples/command_bot/Cargo.toml | 4 +- examples/cross_signing_bootstrap/Cargo.toml | 6 +- examples/custom_events/Cargo.toml | 4 +- examples/emoji_verification/Cargo.toml | 8 +-- examples/get_profiles/Cargo.toml | 6 +- examples/getting_started/Cargo.toml | 4 +- examples/image_bot/Cargo.toml | 6 +- examples/login/Cargo.toml | 6 +- examples/oauth_cli/Cargo.toml | 14 ++-- examples/persist_session/Cargo.toml | 10 +-- examples/qr-login/Cargo.toml | 6 +- examples/secret_storage/Cargo.toml | 6 +- examples/timeline/Cargo.toml | 8 +-- labs/multiverse/Cargo.toml | 10 +-- .../matrix-sdk-integration-testing/Cargo.toml | 34 ++++----- testing/matrix-sdk-test-macros/Cargo.toml | 2 +- testing/matrix-sdk-test/Cargo.toml | 20 +++--- xtask/Cargo.toml | 4 +- 33 files changed, 318 insertions(+), 318 deletions(-) diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml index 2f4efa7ab..a821b0cad 100644 --- a/benchmarks/Cargo.toml +++ b/benchmarks/Cargo.toml @@ -3,7 +3,7 @@ name = "benchmarks" description = "Matrix SDK benchmarks" edition = "2021" license = "Apache-2.0" -rust-version = { workspace = true } +rust-version.workspace = true version = "1.0.0" publish = false @@ -13,17 +13,17 @@ release = false [dependencies] criterion = { version = "0.5.1", features = ["async", "async_tokio", "html_reports"] } matrix-sdk = { workspace = true, features = ["native-tls", "e2e-encryption", "sqlite", "testing"] } -matrix-sdk-base = { workspace = true } -matrix-sdk-crypto = { workspace = true } +matrix-sdk-base.workspace = true +matrix-sdk-crypto.workspace = true matrix-sdk-sqlite = { workspace = true, features = ["crypto-store"] } -matrix-sdk-test = { workspace = true } -matrix-sdk-ui = { workspace = true } -ruma = { workspace = true } -serde = { workspace = true } -serde_json = { workspace = true } +matrix-sdk-test.workspace = true +matrix-sdk-ui.workspace = true +ruma.workspace = true +serde.workspace = true +serde_json.workspace = true tempfile = "3.3.0" tokio = { workspace = true, default-features = false, features = ["rt-multi-thread"] } -wiremock = { workspace = true } +wiremock.workspace = true [target.'cfg(target_os = "linux")'.dependencies] pprof = { version = "0.14.0", features = ["flamegraph", "criterion"] } diff --git a/bindings/matrix-sdk-crypto-ffi/Cargo.toml b/bindings/matrix-sdk-crypto-ffi/Cargo.toml index 2a7f4fe1e..31086c8b1 100644 --- a/bindings/matrix-sdk-crypto-ffi/Cargo.toml +++ b/bindings/matrix-sdk-crypto-ffi/Cargo.toml @@ -3,7 +3,7 @@ name = "matrix-sdk-crypto-ffi" version = "0.1.0" authors = ["Damir Jelić "] edition = "2021" -rust-version = { workspace = true } +rust-version.workspace = true description = "Uniffi based bindings for the Rust SDK crypto crate" repository = "https://github.com/matrix-org/matrix-rust-sdk" license = "Apache-2.0" @@ -24,23 +24,23 @@ default = ["bundled-sqlite"] bundled-sqlite = ["matrix-sdk-sqlite/bundled"] [dependencies] -anyhow = { workspace = true } -futures-util = { workspace = true } +anyhow.workspace = true +futures-util.workspace = true hmac = "0.12.1" -http = { workspace = true } +http.workspace = true matrix-sdk-common = { workspace = true, features = ["uniffi"] } -matrix-sdk-ffi-macros = { workspace = true } +matrix-sdk-ffi-macros.workspace = true pbkdf2 = "0.12.2" -rand = { workspace = true } -ruma = { workspace = true } -serde = { workspace = true } -serde_json = { workspace = true } -sha2 = { workspace = true } -thiserror = { workspace = true } +rand.workspace = true +ruma.workspace = true +serde.workspace = true +serde_json.workspace = true +sha2.workspace = true +thiserror.workspace = true tracing-subscriber = { workspace = true, features = ["env-filter"] } # keep in sync with uniffi dependency in matrix-sdk-ffi, and uniffi_bindgen in ffi CI job uniffi = { workspace = true, features = ["cli"] } -vodozemac = { workspace = true } +vodozemac.workspace = true zeroize = { workspace = true, features = ["zeroize_derive"] } [dependencies.js_int] @@ -65,7 +65,7 @@ uniffi = { workspace = true, features = ["build"] } vergen = { version = "8.2.5", features = ["build", "git", "gitcl"] } [dev-dependencies] -assert_matches2 = { workspace = true } +assert_matches2.workspace = true tempfile = "3.8.0" [lints] diff --git a/bindings/matrix-sdk-ffi-macros/Cargo.toml b/bindings/matrix-sdk-ffi-macros/Cargo.toml index b017169af..9a21c5b50 100644 --- a/bindings/matrix-sdk-ffi-macros/Cargo.toml +++ b/bindings/matrix-sdk-ffi-macros/Cargo.toml @@ -7,7 +7,7 @@ license = "Apache-2.0" name = "matrix-sdk-ffi-macros" readme = "README.md" repository = "https://github.com/matrix-org/matrix-rust-sdk" -rust-version = { workspace = true } +rust-version.workspace = true version = "0.7.0" publish = false diff --git a/bindings/matrix-sdk-ffi/Cargo.toml b/bindings/matrix-sdk-ffi/Cargo.toml index 92f66ad8b..a350cc878 100644 --- a/bindings/matrix-sdk-ffi/Cargo.toml +++ b/bindings/matrix-sdk-ffi/Cargo.toml @@ -6,7 +6,7 @@ homepage = "https://github.com/matrix-org/matrix-rust-sdk" keywords = ["matrix", "chat", "messaging", "ffi"] license = "Apache-2.0" readme = "README.md" -rust-version = { workspace = true } +rust-version.workspace = true repository = "https://github.com/matrix-org/matrix-rust-sdk" publish = false @@ -21,32 +21,32 @@ default = ["bundled-sqlite"] bundled-sqlite = ["matrix-sdk/bundled-sqlite"] [dependencies] -anyhow = { workspace = true } -as_variant = { workspace = true } +anyhow.workspace = true +as_variant.workspace = true async-compat = "0.2.4" extension-trait = "1.0.1" -eyeball-im = { workspace = true } -futures-util = { workspace = true } +eyeball-im.workspace = true +futures-util.workspace = true language-tags = "0.3.2" log-panics = { version = "2", features = ["with-backtrace"] } -matrix-sdk-ffi-macros = { workspace = true } +matrix-sdk-ffi-macros.workspace = true matrix-sdk-ui = { workspace = true, features = ["uniffi"] } mime = "0.3.16" -once_cell = { workspace = true } +once_cell.workspace = true ruma = { workspace = true, features = ["html", "unstable-unspecified", "unstable-msc3488", "compat-unset-avatar", "unstable-msc3245-v1-compat", "unstable-msc4278"] } sentry-tracing = "0.36.0" -serde = { workspace = true } -serde_json = { workspace = true } -thiserror = { workspace = true } +serde.workspace = true +serde_json.workspace = true +thiserror.workspace = true tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } -tracing = { workspace = true } +tracing.workspace = true tracing-appender = { version = "0.2.2" } -tracing-core = { workspace = true } +tracing-core.workspace = true tracing-subscriber = { workspace = true, features = ["env-filter"] } uniffi = { workspace = true, features = ["tokio"] } -url = { workspace = true } +url.workspace = true uuid = { version = "1.4.1", features = ["v4"] } -zeroize = { workspace = true } +zeroize.workspace = true [target.'cfg(not(target_os = "android"))'.dependencies.matrix-sdk] workspace = true diff --git a/crates/matrix-sdk-base/Cargo.toml b/crates/matrix-sdk-base/Cargo.toml index 5c8936e01..3740cee93 100644 --- a/crates/matrix-sdk-base/Cargo.toml +++ b/crates/matrix-sdk-base/Cargo.toml @@ -8,7 +8,7 @@ license = "Apache-2.0" name = "matrix-sdk-base" readme = "README.md" repository = "https://github.com/matrix-org/matrix-rust-sdk" -rust-version = { workspace = true } +rust-version.workspace = true version = "0.11.0" [package.metadata.docs.rs] @@ -53,22 +53,22 @@ testing = [ unstable-msc4274 = [] [dependencies] -as_variant = { workspace = true } +as_variant.workspace = true assert_matches = { workspace = true, optional = true } assert_matches2 = { workspace = true, optional = true } -async-trait = { workspace = true } +async-trait.workspace = true bitflags = { workspace = true, features = ["serde"] } decancer = "3.2.8" eyeball = { workspace = true, features = ["async-lock"] } -eyeball-im = { workspace = true } -futures-util = { workspace = true } -growable-bloom-filter = { workspace = true } +eyeball-im.workspace = true +futures-util.workspace = true +growable-bloom-filter.workspace = true http = { workspace = true, optional = true } -matrix-sdk-common = { workspace = true } +matrix-sdk-common.workspace = true matrix-sdk-crypto = { workspace = true, optional = true } -matrix-sdk-store-encryption = { workspace = true } +matrix-sdk-store-encryption.workspace = true matrix-sdk-test = { workspace = true, optional = true } -once_cell = { workspace = true } +once_cell.workspace = true regex = "1.11.1" ruma = { workspace = true, features = [ "canonical-json", @@ -78,28 +78,28 @@ ruma = { workspace = true, features = [ "rand", ] } serde = { workspace = true, features = ["rc"] } -serde_json = { workspace = true } -thiserror = { workspace = true } -tokio = { workspace = true } -tracing = { workspace = true } -unicode-normalization = { workspace = true } +serde_json.workspace = true +thiserror.workspace = true +tokio.workspace = true +tracing.workspace = true +unicode-normalization.workspace = true uniffi = { workspace = true, optional = true } [dev-dependencies] -assert_matches = { workspace = true } -assert_matches2 = { workspace = true } +assert_matches.workspace = true +assert_matches2.workspace = true assign = "1.1.1" -futures-executor = { workspace = true } -http = { workspace = true } -matrix-sdk-test = { workspace = true } -similar-asserts = { workspace = true } -stream_assert = { workspace = true } +futures-executor.workspace = true +http.workspace = true +matrix-sdk-test.workspace = true +similar-asserts.workspace = true +stream_assert.workspace = true [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } [target.'cfg(target_arch = "wasm32")'.dev-dependencies] -wasm-bindgen-test = { workspace = true } +wasm-bindgen-test.workspace = true [lints] workspace = true diff --git a/crates/matrix-sdk-common/Cargo.toml b/crates/matrix-sdk-common/Cargo.toml index abf8472ef..9e1906d57 100644 --- a/crates/matrix-sdk-common/Cargo.toml +++ b/crates/matrix-sdk-common/Cargo.toml @@ -8,7 +8,7 @@ license = "Apache-2.0" name = "matrix-sdk-common" readme = "README.md" repository = "https://github.com/matrix-org/matrix-rust-sdk" -rust-version = { workspace = true } +rust-version.workspace = true version = "0.11.0" [package.metadata.docs.rs] @@ -25,17 +25,17 @@ uniffi = ["dep:uniffi"] test-send-sync = [] [dependencies] -async-trait = { workspace = true } -eyeball-im = { workspace = true } -futures-core = { workspace = true } -futures-util = { workspace = true } -imbl = { workspace = true } -ruma = { workspace = true } -serde = { workspace = true } -serde_json = { workspace = true } -thiserror = { workspace = true } +async-trait.workspace = true +eyeball-im.workspace = true +futures-core.workspace = true +futures-util.workspace = true +imbl.workspace = true +ruma.workspace = true +serde.workspace = true +serde_json.workspace = true +thiserror.workspace = true tokio = { workspace = true, features = ["rt", "time"] } -tracing = { workspace = true } +tracing.workspace = true uniffi = { workspace = true, optional = true } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] @@ -46,21 +46,21 @@ tokio = { workspace = true, features = ["rt", "macros"] } futures-util = { workspace = true, features = ["channel"] } gloo-timers = { workspace = true, features = ["futures"] } tracing-subscriber = { workspace = true, features = ["fmt", "ansi"] } -wasm-bindgen = { workspace = true } +wasm-bindgen.workspace = true wasm-bindgen-futures = { version = "0.4.33", optional = true } web-sys = { workspace = true, features = ["console"] } [dev-dependencies] -assert_matches = { workspace = true } -insta = { workspace = true } +assert_matches.workspace = true +insta.workspace = true matrix-sdk-test-macros = { path = "../../testing/matrix-sdk-test-macros" } -proptest = { workspace = true } -wasm-bindgen-test = { workspace = true } +proptest.workspace = true +wasm-bindgen-test.workspace = true [target.'cfg(target_arch = "wasm32")'.dev-dependencies] # Enable the JS feature for getrandom. getrandom = { workspace = true, default-features = false, features = ["js"] } -js-sys = { workspace = true } +js-sys.workspace = true [lints] workspace = true diff --git a/crates/matrix-sdk-crypto/Cargo.toml b/crates/matrix-sdk-crypto/Cargo.toml index a0843a885..94db743c9 100644 --- a/crates/matrix-sdk-crypto/Cargo.toml +++ b/crates/matrix-sdk-crypto/Cargo.toml @@ -8,7 +8,7 @@ license = "Apache-2.0" name = "matrix-sdk-crypto" readme = "README.md" repository = "https://github.com/matrix-org/matrix-rust-sdk" -rust-version = { workspace = true } +rust-version.workspace = true version = "0.11.0" [package.metadata.docs.rs] @@ -37,62 +37,62 @@ testing = ["matrix-sdk-test"] [dependencies] aes = "0.8.4" -aquamarine = { workspace = true } -as_variant = { workspace = true } -async-trait = { workspace = true } +aquamarine.workspace = true +as_variant.workspace = true +async-trait.workspace = true bs58 = { version = "0.5.1" } -byteorder = { workspace = true } +byteorder.workspace = true cfg-if = "1.0.0" ctr = "0.9.2" -eyeball = { workspace = true } -futures-core = { workspace = true } -futures-util = { workspace = true } -hkdf = { workspace = true } -hmac = { workspace = true } -itertools = { workspace = true } +eyeball.workspace = true +futures-core.workspace = true +futures-util.workspace = true +hkdf.workspace = true +hmac.workspace = true +itertools.workspace = true js_option = "0.1.1" -matrix-sdk-common = { workspace = true } +matrix-sdk-common.workspace = true matrix-sdk-qrcode = { workspace = true, optional = true } matrix-sdk-test = { workspace = true, optional = true } # feature = testing only -pbkdf2 = { workspace = true } -rand = { workspace = true } -rmp-serde = { workspace = true } +pbkdf2.workspace = true +rand.workspace = true +rmp-serde.workspace = true ruma = { workspace = true, features = ["rand", "canonical-json", "unstable-msc3814"] } serde = { workspace = true, features = ["derive", "rc"] } -serde_json = { workspace = true } -sha2 = { workspace = true } +serde_json.workspace = true +sha2.workspace = true subtle = "2.6.1" -thiserror = { workspace = true } +thiserror.workspace = true time = { version = "0.3.37", features = ["formatting"] } -tokio = { workspace = true } +tokio.workspace = true tokio-stream = { workspace = true, features = ["sync"] } tracing = { workspace = true, features = ["attributes"] } ulid = { version = "1.1.4" } uniffi = { workspace = true, optional = true } -url = { workspace = true } -vodozemac = { workspace = true } +url.workspace = true +vodozemac.workspace = true zeroize = { workspace = true, features = ["zeroize_derive"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] tokio = { workspace = true, features = ["time"] } [target.'cfg(target_arch = "wasm32")'.dependencies] -tokio = { workspace = true } +tokio.workspace = true [dev-dependencies] -anyhow = { workspace = true } -assert_matches = { workspace = true } -assert_matches2 = { workspace = true } -futures-executor = { workspace = true } -http = { workspace = true } +anyhow.workspace = true +assert_matches.workspace = true +assert_matches2.workspace = true +futures-executor.workspace = true +http.workspace = true indoc = "2.0.5" -insta = { workspace = true } -matrix-sdk-test = { workspace = true } -proptest = { workspace = true } -rmp-serde = { workspace = true } -similar-asserts = { workspace = true } +insta.workspace = true +matrix-sdk-test.workspace = true +proptest.workspace = true +rmp-serde.workspace = true +similar-asserts.workspace = true # required for async_test macro -stream_assert = { workspace = true } +stream_assert.workspace = true tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } [lints] diff --git a/crates/matrix-sdk-indexeddb/Cargo.toml b/crates/matrix-sdk-indexeddb/Cargo.toml index 8bd9ab69f..6afe67a40 100644 --- a/crates/matrix-sdk-indexeddb/Cargo.toml +++ b/crates/matrix-sdk-indexeddb/Cargo.toml @@ -5,7 +5,7 @@ repository = "https://github.com/matrix-org/matrix-rust-sdk" description = "Web's IndexedDB Storage backend for matrix-sdk" license = "Apache-2.0" edition = "2021" -rust-version = { workspace = true } +rust-version.workspace = true readme = "README.md" [package.metadata.docs.rs] @@ -20,44 +20,44 @@ e2e-encryption = ["dep:matrix-sdk-crypto"] testing = ["matrix-sdk-crypto?/testing"] [dependencies] -anyhow = { workspace = true } -async-trait = { workspace = true } -base64 = { workspace = true } +anyhow.workspace = true +async-trait.workspace = true +base64.workspace = true gloo-utils = { version = "0.2.0", features = ["serde"] } growable-bloom-filter = { workspace = true, optional = true } -hkdf = { workspace = true } +hkdf.workspace = true indexed_db_futures = "0.5.0" -js-sys = { workspace = true } +js-sys.workspace = true matrix-sdk-base = { workspace = true, features = ["js"], optional = true } matrix-sdk-crypto = { workspace = true, features = ["js"], optional = true } -matrix-sdk-store-encryption = { workspace = true } -ruma = { workspace = true } -serde = { workspace = true } +matrix-sdk-store-encryption.workspace = true +ruma.workspace = true +serde.workspace = true serde-wasm-bindgen = "0.6.5" -serde_json = { workspace = true } -sha2 = { workspace = true } -thiserror = { workspace = true } -tokio = { workspace = true } -tracing = { workspace = true } -wasm-bindgen = { workspace = true } +serde_json.workspace = true +sha2.workspace = true +thiserror.workspace = true +tokio.workspace = true +tracing.workspace = true +wasm-bindgen.workspace = true web-sys = { workspace = true, features = ["IdbKeyRange"] } -zeroize = { workspace = true } +zeroize.workspace = true [target.'cfg(target_arch = "wasm32")'.dependencies] # for wasm32 we need to activate this getrandom = { workspace = true, features = ["js"] } [dev-dependencies] -assert_matches = { workspace = true } -assert_matches2 = { workspace = true } +assert_matches.workspace = true +assert_matches2.workspace = true matrix-sdk-base = { workspace = true, features = ["testing"] } matrix-sdk-common = { workspace = true, features = ["js"] } matrix-sdk-crypto = { workspace = true, features = ["js", "testing"] } -matrix-sdk-test = { workspace = true } -rand = { workspace = true } +matrix-sdk-test.workspace = true +rand.workspace = true tracing-subscriber = { workspace = true, features = ["registry", "tracing-log"] } -uuid = { workspace = true } -wasm-bindgen-test = { workspace = true } +uuid.workspace = true +wasm-bindgen-test.workspace = true web-sys = { workspace = true, features = ["IdbKeyRange", "Window", "Performance"] } [lints] diff --git a/crates/matrix-sdk-qrcode/Cargo.toml b/crates/matrix-sdk-qrcode/Cargo.toml index eeae051a2..1171a328b 100644 --- a/crates/matrix-sdk-qrcode/Cargo.toml +++ b/crates/matrix-sdk-qrcode/Cargo.toml @@ -8,7 +8,7 @@ homepage = "https://github.com/matrix-org/matrix-rust-sdk" keywords = ["matrix", "chat", "messaging", "ruma", "nio"] license = "Apache-2.0" readme = "README.md" -rust-version = { workspace = true } +rust-version.workspace = true repository = "https://github.com/matrix-org/matrix-rust-sdk" [package.metadata.docs.rs] @@ -19,11 +19,11 @@ rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] js = ["vodozemac/js"] [dependencies] -byteorder = { workspace = true } +byteorder.workspace = true qrcode = { version = "0.14.1", default-features = false } -ruma-common = { workspace = true } -thiserror = { workspace = true } -vodozemac = { workspace = true } +ruma-common.workspace = true +thiserror.workspace = true +vodozemac.workspace = true [dev-dependencies] image = { version = "0.25.5", default-features = false } diff --git a/crates/matrix-sdk-sqlite/Cargo.toml b/crates/matrix-sdk-sqlite/Cargo.toml index b54b6b5d5..17cc83308 100644 --- a/crates/matrix-sdk-sqlite/Cargo.toml +++ b/crates/matrix-sdk-sqlite/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" repository = "https://github.com/matrix-org/matrix-rust-sdk" description = "Sqlite storage backend for matrix-sdk" license = "Apache-2.0" -rust-version = { workspace = true } +rust-version.workspace = true [package.metadata.docs.rs] rustdoc-args = ["--generate-link-to-definition"] @@ -20,34 +20,34 @@ event-cache = ["dep:matrix-sdk-base"] state-store = ["dep:matrix-sdk-base"] [dependencies] -as_variant = { workspace = true } -async-trait = { workspace = true } +as_variant.workspace = true +async-trait.workspace = true deadpool-sqlite = "0.10.0" -itertools = { workspace = true } +itertools.workspace = true matrix-sdk-base = { workspace = true, optional = true } matrix-sdk-crypto = { workspace = true, optional = true } -matrix-sdk-store-encryption = { workspace = true } +matrix-sdk-store-encryption.workspace = true num_cpus = "1.16.0" -rmp-serde = { workspace = true } -ruma = { workspace = true } +rmp-serde.workspace = true +ruma.workspace = true rusqlite = { version = "0.33.0", features = ["limits"] } -serde = { workspace = true } -serde_json = { workspace = true } -thiserror = { workspace = true } +serde.workspace = true +serde_json.workspace = true +thiserror.workspace = true tokio = { workspace = true, features = ["fs"] } -tracing = { workspace = true } -vodozemac = { workspace = true } +tracing.workspace = true +vodozemac.workspace = true [dev-dependencies] -assert_matches = { workspace = true } +assert_matches.workspace = true glob = "0.3.2" matrix-sdk-base = { workspace = true, features = ["testing"] } -matrix-sdk-common = { workspace = true } +matrix-sdk-common.workspace = true matrix-sdk-crypto = { workspace = true, features = ["testing"] } -matrix-sdk-test = { workspace = true } -once_cell = { workspace = true } -similar-asserts = { workspace = true } -tempfile = { workspace = true } +matrix-sdk-test.workspace = true +once_cell.workspace = true +similar-asserts.workspace = true +tempfile.workspace = true tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } [lints] diff --git a/crates/matrix-sdk-store-encryption/Cargo.toml b/crates/matrix-sdk-store-encryption/Cargo.toml index 3caac02c4..376eb872c 100644 --- a/crates/matrix-sdk-store-encryption/Cargo.toml +++ b/crates/matrix-sdk-store-encryption/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" description = "Helpers for encrypted storage keys for the Matrix SDK" repository = "https://github.com/matrix-org/matrix-rust-sdk" license = "Apache-2.0" -rust-version = { workspace = true } +rust-version.workspace = true [package.metadata.docs.rs] rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"] @@ -17,22 +17,22 @@ ignored = ["getrandom"] # We do manually enable a feature for it. js = ["dep:getrandom", "getrandom?/js"] [dependencies] -base64 = { workspace = true } +base64.workspace = true blake3 = "1.8.1" chacha20poly1305 = { version = "0.10.1", features = ["std"] } getrandom = { workspace = true, optional = true } -hmac = { workspace = true } -pbkdf2 = { workspace = true } -rand = { workspace = true } -rmp-serde = { workspace = true } +hmac.workspace = true +pbkdf2.workspace = true +rand.workspace = true +rmp-serde.workspace = true serde = { workspace = true, features = ["derive"] } -serde_json = { workspace = true } -sha2 = { workspace = true } -thiserror = { workspace = true } +serde_json.workspace = true +sha2.workspace = true +thiserror.workspace = true zeroize = { workspace = true, features = ["zeroize_derive"] } [dev-dependencies] -anyhow = { workspace = true } +anyhow.workspace = true [lints] workspace = true diff --git a/crates/matrix-sdk-ui/Cargo.toml b/crates/matrix-sdk-ui/Cargo.toml index 45006857a..938a384db 100644 --- a/crates/matrix-sdk-ui/Cargo.toml +++ b/crates/matrix-sdk-ui/Cargo.toml @@ -5,7 +5,7 @@ version = "0.11.0" edition = "2021" repository = "https://github.com/matrix-org/matrix-rust-sdk" license = "Apache-2.0" -rust-version = { workspace = true } +rust-version.workspace = true [package.metadata.docs.rs] rustdoc-args = ["--generate-link-to-definition"] @@ -23,52 +23,52 @@ uniffi = ["dep:uniffi", "matrix-sdk/uniffi", "matrix-sdk-base/uniffi"] unstable-msc3956 = ["ruma/unstable-msc3956"] [dependencies] -as_variant = { workspace = true } -async-rx = { workspace = true } -async-stream = { workspace = true } +as_variant.workspace = true +async-rx.workspace = true +async-stream.workspace = true async_cell = "0.2.2" -bitflags = { workspace = true } -chrono = { workspace = true } -eyeball = { workspace = true } -eyeball-im = { workspace = true } -eyeball-im-util = { workspace = true } -futures-core = { workspace = true } -futures-util = { workspace = true } +bitflags.workspace = true +chrono.workspace = true +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" -growable-bloom-filter = { workspace = true } +growable-bloom-filter.workspace = true imbl = { workspace = true, features = ["serde"] } -indexmap = { workspace = true } -itertools = { workspace = true } +indexmap.workspace = true +itertools.workspace = true matrix-sdk = { workspace = true, features = ["e2e-encryption"] } -matrix-sdk-base = { workspace = true } -mime = { workspace = true } -once_cell = { workspace = true } -pin-project-lite = { workspace = true } +matrix-sdk-base.workspace = true +mime.workspace = true +once_cell.workspace = true +pin-project-lite.workspace = true ruma = { workspace = true, features = ["html", "unstable-msc3381"] } -serde = { workspace = true } -serde_json = { workspace = true } -thiserror = { workspace = true } -tokio = { workspace = true } +serde.workspace = true +serde_json.workspace = true +thiserror.workspace = true +tokio.workspace = true tokio-stream = { workspace = true, features = ["sync"] } tracing = { workspace = true, features = ["attributes"] } -unicode-normalization = { workspace = true } +unicode-normalization.workspace = true uniffi = { workspace = true, optional = true } emojis = "0.6.4" unicode-segmentation = "1.12.0" [dev-dependencies] -anyhow = { workspace = true } -assert-json-diff = { workspace = true } -assert_matches = { workspace = true } -assert_matches2 = { workspace = true } -eyeball-im-util = { workspace = true } +anyhow.workspace = true +assert-json-diff.workspace = true +assert_matches.workspace = true +assert_matches2.workspace = true +eyeball-im-util.workspace = true matrix-sdk = { workspace = true, features = ["testing", "sqlite"] } -matrix-sdk-test = { workspace = true } -stream_assert = { workspace = true } -tempfile = { workspace = true } -url = { workspace = true } -wiremock = { workspace = true } +matrix-sdk-test.workspace = true +stream_assert.workspace = true +tempfile.workspace = true +url.workspace = true +wiremock.workspace = true [lints] workspace = true diff --git a/crates/matrix-sdk/Cargo.toml b/crates/matrix-sdk/Cargo.toml index 49fcfbc1c..196516d88 100644 --- a/crates/matrix-sdk/Cargo.toml +++ b/crates/matrix-sdk/Cargo.toml @@ -8,7 +8,7 @@ license = "Apache-2.0" name = "matrix-sdk" readme = "README.md" repository = "https://github.com/matrix-org/matrix-rust-sdk" -rust-version = { workspace = true } +rust-version.workspace = true version = "0.11.0" [package.metadata.docs.rs] @@ -66,39 +66,39 @@ unstable-msc4274 = ["matrix-sdk-base/unstable-msc4274"] [dependencies] anyhow = { workspace = true, optional = true } anymap2 = "0.13.0" -aquamarine = { workspace = true } -as_variant = { workspace = true } +aquamarine.workspace = true +as_variant.workspace = true assert_matches2 = { workspace = true, optional = true } async-channel = "2.3.1" -async-stream = { workspace = true } -async-trait = { workspace = true } +async-stream.workspace = true +async-trait.workspace = true axum = { version = "0.8.1", optional = true } bytes = "1.9.0" bytesize = "2.0.1" cfg-if = "1.0.0" event-listener = "5.4.0" -eyeball = { workspace = true } -eyeball-im = { workspace = true } +eyeball.workspace = true +eyeball-im.workspace = true eyre = { version = "0.6.12", optional = true } -futures-core = { workspace = true } -futures-util = { workspace = true } -http = { workspace = true } +futures-core.workspace = true +futures-util.workspace = true +http.workspace = true imbl = { workspace = true, features = ["serde"] } -indexmap = { workspace = true } +indexmap.workspace = true js_int = "0.2.2" language-tags = { version = "0.3.2" } -matrix-sdk-base = { workspace = true } -matrix-sdk-common = { workspace = true } +matrix-sdk-base.workspace = true +matrix-sdk-common.workspace = true matrix-sdk-ffi-macros = { workspace = true, optional = true } matrix-sdk-indexeddb = { workspace = true, optional = true } matrix-sdk-sqlite = { workspace = true, optional = true } matrix-sdk-test = { workspace = true, optional = true } -mime = { workspace = true } +mime.workspace = true mime2ext = "0.1.53" oauth2 = { version = "5.0.0", default-features = false, features = ["reqwest", "timing-resistant-secret-traits"] } -once_cell = { workspace = true } +once_cell.workspace = true percent-encoding = "2.3.1" -pin-project-lite = { workspace = true } +pin-project-lite.workspace = true rand = { workspace = true, optional = true } ruma = { workspace = true, features = [ "rand", @@ -111,12 +111,12 @@ ruma = { workspace = true, features = [ "unstable-msc4108", "unstable-msc4278", ] } -serde = { workspace = true } -serde_html_form = { workspace = true } -serde_json = { workspace = true } -sha2 = { workspace = true } -tempfile = { workspace = true } -thiserror = { workspace = true } +serde.workspace = true +serde_html_form.workspace = true +serde_json.workspace = true +sha2.workspace = true +tempfile.workspace = true +thiserror.workspace = true tokio-stream = { workspace = true, features = ["sync"] } tokio-util = "0.7.13" tower = { version = "0.5.2", features = ["util"], optional = true } @@ -125,8 +125,8 @@ uniffi = { workspace = true, optional = true } url = { workspace = true, features = ["serde"] } urlencoding = "2.1.3" uuid = { workspace = true, features = ["serde", "v4"], optional = true } -vodozemac = { workspace = true } -zeroize = { workspace = true } +vodozemac.workspace = true +zeroize.workspace = true [target.'cfg(not(target_arch = "wasm32"))'.dependencies] backon = "1.5.0" @@ -142,28 +142,28 @@ reqwest = { workspace = true, features = ["gzip", "http2"] } tokio = { workspace = true, features = ["macros"] } [dev-dependencies] -anyhow = { workspace = true } -assert-json-diff = { workspace = true } -assert_matches = { workspace = true } -assert_matches2 = { workspace = true } +anyhow.workspace = true +assert-json-diff.workspace = true +assert_matches.workspace = true +assert_matches2.workspace = true dirs = "6.0.0" -futures-executor = { workspace = true } -insta = { workspace = true } +futures-executor.workspace = true +insta.workspace = true matrix-sdk-base = { workspace = true, features = ["testing"] } -matrix-sdk-test = { workspace = true } +matrix-sdk-test.workspace = true serde_urlencoded = "0.7.1" -similar-asserts = { workspace = true } -stream_assert = { workspace = true } +similar-asserts.workspace = true +stream_assert.workspace = true tokio-test = "0.4.4" tracing-subscriber = { workspace = true, features = ["env-filter"] } [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] -proptest = { workspace = true } +proptest.workspace = true tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } -wiremock = { workspace = true } +wiremock.workspace = true [target.'cfg(target_arch = "wasm32")'.dev-dependencies] -wasm-bindgen-test = { workspace = true } +wasm-bindgen-test.workspace = true [[test]] name = "integration" diff --git a/examples/autojoin/Cargo.toml b/examples/autojoin/Cargo.toml index 90d46e1db..2e1a8a051 100644 --- a/examples/autojoin/Cargo.toml +++ b/examples/autojoin/Cargo.toml @@ -13,12 +13,12 @@ name = "example-autojoin" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } +tracing-subscriber.workspace = true [lints] workspace = true diff --git a/examples/backups/Cargo.toml b/examples/backups/Cargo.toml index d1eea2e2e..0e268b722 100644 --- a/examples/backups/Cargo.toml +++ b/examples/backups/Cargo.toml @@ -13,15 +13,15 @@ name = "example-backups" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true clap = { version = "4.0.15", features = ["derive"] } -futures-util = { workspace = true } +futures-util.workspace = true # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } -url = { workspace = true } +tracing-subscriber.workspace = true +url.workspace = true [lints] workspace = true diff --git a/examples/command_bot/Cargo.toml b/examples/command_bot/Cargo.toml index 45cd636bb..d1049e84a 100644 --- a/examples/command_bot/Cargo.toml +++ b/examples/command_bot/Cargo.toml @@ -13,12 +13,12 @@ name = "example-command-bot" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } +tracing-subscriber.workspace = true [lints] workspace = true diff --git a/examples/cross_signing_bootstrap/Cargo.toml b/examples/cross_signing_bootstrap/Cargo.toml index cb52a96c8..6f8af0fe2 100644 --- a/examples/cross_signing_bootstrap/Cargo.toml +++ b/examples/cross_signing_bootstrap/Cargo.toml @@ -13,13 +13,13 @@ name = "example-cross-signing-bootstrap" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } -url = { workspace = true } +tracing-subscriber.workspace = true +url.workspace = true [lints] workspace = true diff --git a/examples/custom_events/Cargo.toml b/examples/custom_events/Cargo.toml index 603b47c6c..86b8cc8fc 100644 --- a/examples/custom_events/Cargo.toml +++ b/examples/custom_events/Cargo.toml @@ -13,13 +13,13 @@ name = "example-custom-events" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } serde = "1.0" tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } +tracing-subscriber.workspace = true [lints] workspace = true diff --git a/examples/emoji_verification/Cargo.toml b/examples/emoji_verification/Cargo.toml index db625321a..770750c03 100644 --- a/examples/emoji_verification/Cargo.toml +++ b/examples/emoji_verification/Cargo.toml @@ -13,15 +13,15 @@ name = "example-emoji-verification" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true clap = { version = "4.0.15", features = ["derive"] } -futures-util = { workspace = true } +futures-util.workspace = true # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } -url = { workspace = true } +tracing-subscriber.workspace = true +url.workspace = true [lints] workspace = true diff --git a/examples/get_profiles/Cargo.toml b/examples/get_profiles/Cargo.toml index dd7da5494..eeb733f5b 100644 --- a/examples/get_profiles/Cargo.toml +++ b/examples/get_profiles/Cargo.toml @@ -13,13 +13,13 @@ name = "example-get-profiles" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } -url = { workspace = true } +tracing-subscriber.workspace = true +url.workspace = true [lints] workspace = true diff --git a/examples/getting_started/Cargo.toml b/examples/getting_started/Cargo.toml index 6814f3235..1d4106f34 100644 --- a/examples/getting_started/Cargo.toml +++ b/examples/getting_started/Cargo.toml @@ -13,12 +13,12 @@ name = "example-getting-started" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } +tracing-subscriber.workspace = true [lints] workspace = true diff --git a/examples/image_bot/Cargo.toml b/examples/image_bot/Cargo.toml index 78253c6d4..be6213784 100644 --- a/examples/image_bot/Cargo.toml +++ b/examples/image_bot/Cargo.toml @@ -13,14 +13,14 @@ name = "example-image-bot" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } mime = "0.3.16" tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } -url = { workspace = true } +tracing-subscriber.workspace = true +url.workspace = true [lints] workspace = true diff --git a/examples/login/Cargo.toml b/examples/login/Cargo.toml index 0feb64fde..93e5f4ece 100644 --- a/examples/login/Cargo.toml +++ b/examples/login/Cargo.toml @@ -13,13 +13,13 @@ name = "example-login" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk", features = ["sso-login"] } tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } -url = { workspace = true } +tracing-subscriber.workspace = true +url.workspace = true [lints] workspace = true diff --git a/examples/oauth_cli/Cargo.toml b/examples/oauth_cli/Cargo.toml index 26c04e180..a9b3b0ab0 100644 --- a/examples/oauth_cli/Cargo.toml +++ b/examples/oauth_cli/Cargo.toml @@ -13,16 +13,16 @@ name = "example-oauth-cli" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true dirs = "6.0.0" -futures-util = { workspace = true } +futures-util.workspace = true matrix-sdk-ui = { path = "../../crates/matrix-sdk-ui" } -rand = { workspace = true } -serde = { workspace = true } -serde_json = { workspace = true } +rand.workspace = true +serde.workspace = true +serde_json.workspace = true tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } -url = { workspace = true } +tracing-subscriber.workspace = true +url.workspace = true [dependencies.matrix-sdk] path = "../../crates/matrix-sdk" diff --git a/examples/persist_session/Cargo.toml b/examples/persist_session/Cargo.toml index e3ed43bfd..d1b1a6899 100644 --- a/examples/persist_session/Cargo.toml +++ b/examples/persist_session/Cargo.toml @@ -13,16 +13,16 @@ name = "example-persist-session" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true dirs = "6.0.0" # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } -rand = { workspace = true } -serde = { workspace = true } -serde_json = { workspace = true } +rand.workspace = true +serde.workspace = true +serde_json.workspace = true tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } +tracing-subscriber.workspace = true [lints] workspace = true diff --git a/examples/qr-login/Cargo.toml b/examples/qr-login/Cargo.toml index 515959c60..868ba6bbc 100644 --- a/examples/qr-login/Cargo.toml +++ b/examples/qr-login/Cargo.toml @@ -13,11 +13,11 @@ name = "example-qr-login" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true clap = { version = "4.0.15", features = ["derive"] } -futures-util = { workspace = true } +futures-util.workspace = true tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } +tracing-subscriber.workspace = true url = "2.3.1" [dependencies.matrix-sdk] diff --git a/examples/secret_storage/Cargo.toml b/examples/secret_storage/Cargo.toml index 25ab6973d..5db5df16b 100644 --- a/examples/secret_storage/Cargo.toml +++ b/examples/secret_storage/Cargo.toml @@ -13,14 +13,14 @@ name = "example-secret-storage" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true clap = { version = "4.0.15", features = ["derive"] } # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } -url = { workspace = true } +tracing-subscriber.workspace = true +url.workspace = true [lints] workspace = true diff --git a/examples/timeline/Cargo.toml b/examples/timeline/Cargo.toml index 6dcf94a3f..769bf24aa 100644 --- a/examples/timeline/Cargo.toml +++ b/examples/timeline/Cargo.toml @@ -13,16 +13,16 @@ name = "example-timeline" test = false [dependencies] -anyhow = { workspace = true } +anyhow.workspace = true clap = { version = "4.0.16", features = ["derive"] } -futures-util = { workspace = true } +futures-util.workspace = true # when copy-pasting this, please use a git dependency or make sure that you # have copied the example as it was at the time of the release you use. matrix-sdk = { path = "../../crates/matrix-sdk" } matrix-sdk-ui = { path = "../../crates/matrix-sdk-ui" } tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing-subscriber = { workspace = true } -url = { workspace = true } +tracing-subscriber.workspace = true +url.workspace = true [lints] workspace = true diff --git a/labs/multiverse/Cargo.toml b/labs/multiverse/Cargo.toml index 51536935c..41182f834 100644 --- a/labs/multiverse/Cargo.toml +++ b/labs/multiverse/Cargo.toml @@ -16,20 +16,20 @@ test = false clap = { version = "4.0.15", features = ["derive", "env"] } color-eyre = "0.6.2" crossterm = "0.28.1" -futures-util = { workspace = true } -imbl = { workspace = true } -itertools = { workspace = true } +futures-util.workspace = true +imbl.workspace = true +itertools.workspace = true matrix-sdk = { path = "../../crates/matrix-sdk", features = ["sso-login", "experimental-share-history-on-invite"] } matrix-sdk-base = { path = "../../crates/matrix-sdk-base" } matrix-sdk-common = { path = "../../crates/matrix-sdk-common" } matrix-sdk-ui = { path = "../../crates/matrix-sdk-ui" } ratatui = { version = "0.29.0", features = ["unstable-widget-ref"] } rpassword = "7.3.1" -serde_json = { workspace = true } +serde_json.workspace = true strum = { version = "0.27.1", features = ["derive"] } throbber-widgets-tui = "0.8.0" tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } -tracing = { workspace = true } +tracing.workspace = true tracing-appender = { version = "0.2.2" } tracing-subscriber = { workspace = true, features = ["env-filter"] } tui-framework-experiment = "0.4.0" diff --git a/testing/matrix-sdk-integration-testing/Cargo.toml b/testing/matrix-sdk-integration-testing/Cargo.toml index ae8dccd80..c6966cf5c 100644 --- a/testing/matrix-sdk-integration-testing/Cargo.toml +++ b/testing/matrix-sdk-integration-testing/Cargo.toml @@ -10,31 +10,31 @@ license = "Apache-2.0" release = false [dev-dependencies] -anyhow = { workspace = true } -assert_matches = { workspace = true } -assert_matches2 = { workspace = true } +anyhow.workspace = true +assert_matches.workspace = true +assert_matches2.workspace = true assign = "1" -eyeball = { workspace = true } -eyeball-im = { workspace = true } +eyeball.workspace = true +eyeball-im.workspace = true futures = { version = "0.3.29", features = ["executor"] } -futures-core = { workspace = true } -futures-util = { workspace = true } -http = { workspace = true } +futures-core.workspace = true +futures-util.workspace = true +http.workspace = true json-structural-diff = "0.1.0" matrix-sdk = { workspace = true, default-features = true, features = ["testing", "qrcode", "experimental-share-history-on-invite"] } matrix-sdk-base = { workspace = true, default-features = true, features = ["testing", "qrcode"] } -matrix-sdk-test = { workspace = true } +matrix-sdk-test.workspace = true matrix-sdk-ui = { workspace = true, default-features = true } -once_cell = { workspace = true } -rand = { workspace = true } -reqwest = { workspace = true } -serde_json = { workspace = true } -similar-asserts = { workspace = true } -stream_assert = { workspace = true } +once_cell.workspace = true +rand.workspace = true +reqwest.workspace = true +serde_json.workspace = true +similar-asserts.workspace = true +stream_assert.workspace = true tempfile = "3.3.0" tokio = { workspace = true, features = ["rt", "rt-multi-thread", "macros"] } -tracing = { workspace = true } -wiremock = { workspace = true } +tracing.workspace = true +wiremock.workspace = true [lints] workspace = true diff --git a/testing/matrix-sdk-test-macros/Cargo.toml b/testing/matrix-sdk-test-macros/Cargo.toml index c8429415f..ced46b88b 100644 --- a/testing/matrix-sdk-test-macros/Cargo.toml +++ b/testing/matrix-sdk-test-macros/Cargo.toml @@ -8,7 +8,7 @@ license = "Apache-2.0" name = "matrix-sdk-test-macros" readme = "README.md" repository = "https://github.com/matrix-org/matrix-rust-sdk" -rust-version = { workspace = true } +rust-version.workspace = true version = "0.11.0" [package.metadata.release] diff --git a/testing/matrix-sdk-test/Cargo.toml b/testing/matrix-sdk-test/Cargo.toml index 856d79989..e32c2f792 100644 --- a/testing/matrix-sdk-test/Cargo.toml +++ b/testing/matrix-sdk-test/Cargo.toml @@ -8,7 +8,7 @@ license = "Apache-2.0" name = "matrix-sdk-test" readme = "README.md" repository = "https://github.com/matrix-org/matrix-rust-sdk" -rust-version = { workspace = true } +rust-version.workspace = true version = "0.11.0" [package.metadata.release] @@ -19,28 +19,28 @@ test = false doctest = false [dependencies] -as_variant = { workspace = true } -http = { workspace = true } -insta = { workspace = true } +as_variant.workspace = true +http.workspace = true +insta.workspace = true matrix-sdk-common = { version = "0.11.0", path = "../../crates/matrix-sdk-common" } matrix-sdk-test-macros = { version = "0.11.0", path = "../matrix-sdk-test-macros" } -once_cell = { workspace = true } +once_cell.workspace = true # Enable the unstable feature for polls support. # "client-api-s" enables need the "server" feature of ruma-client-api, which is needed to serialize Response objects to JSON. ruma = { workspace = true, features = ["canonical-json", "client-api-s", "rand", "unstable-msc3381"] } -serde = { workspace = true } -serde_json = { workspace = true } -vodozemac = { workspace = true } +serde.workspace = true +serde_json.workspace = true +vodozemac.workspace = true [target.'cfg(not(target_arch = "wasm32"))'.dependencies] ctor = "0.2.9" tokio = { workspace = true, features = ["rt", "macros"] } tracing-subscriber = { workspace = true, features = ["env-filter"] } -wiremock = { workspace = true } +wiremock.workspace = true [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.2.6", default-features = false, features = ["js"] } -wasm-bindgen-test = { workspace = true } +wasm-bindgen-test.workspace = true [lints] workspace = true diff --git a/xtask/Cargo.toml b/xtask/Cargo.toml index 306576299..3e4f689c9 100644 --- a/xtask/Cargo.toml +++ b/xtask/Cargo.toml @@ -17,6 +17,6 @@ camino = "1.0.8" clap = { version = "4.0.18", features = ["derive"] } fs_extra = "1" serde = { workspace = true, features = ["derive"] } -serde_json = { workspace = true } -uniffi_bindgen = { workspace = true } +serde_json.workspace = true +uniffi_bindgen.workspace = true xshell = "0.2.2"