From df509eadc9aecef605194b7c97c5fb02bf928b79 Mon Sep 17 00:00:00 2001 From: Vika Date: Wed, 1 Jan 2025 05:32:37 +0300 Subject: Use workspace dependencies to simplify dependency management This will reduce risks of dependency duplication in the tree when updating or adding new dependencies, as one could simply inherit from the workspace. `cargo-autoinherit` was considered, but it migrates EVERY single dependency, whereas I'd prefer that only reused dependencies are migrated. Additionally, it doesn't merge features automatically, requiring manual intervention anyway. Change-Id: If0dd19012c723ab71f599119d108e805b2d5e463 --- util/Cargo.toml | 35 ++++++++++------------------------- 1 file changed, 10 insertions(+), 25 deletions(-) (limited to 'util') diff --git a/util/Cargo.toml b/util/Cargo.toml index 53e94eb..fad0748 100644 --- a/util/Cargo.toml +++ b/util/Cargo.toml @@ -13,28 +13,13 @@ axum = ["dep:axum-core", "http"] http = ["dep:http"] [dependencies] -serde = { version = "^1.0.217", features = ["derive"] } -serde_json = "^1.0.134" -futures-util = "^0.3.31" -uuid = "^1.11.0" - -[dependencies.url] -version = "2.5.4" -features = ["serde"] -[dependencies.rand] -version = "^0.8.5" -optional = true -[dependencies.tokio] -version = "^1.42.0" -features = ["tracing"] -optional = true -[dependencies.sqlx] -version = "0.8.1" -features = ["json"] -optional = true -[dependencies.axum-core] -version = "^0.4.5" -optional = true -[dependencies.http] -version = "^1.2" -optional = true +axum-core = { workspace = true, optional = true } +futures-util = { workspace = true } +http = { workspace = true, optional = true } +rand = { workspace = true, optional = true } +serde = { workspace = true } +serde_json = { workspace = true } +sqlx = { workspace = true, optional = true } +tokio = { workspace = true, features = ["tracing"], optional = true } +url = { workspace = true } +uuid = { workspace = true } -- cgit 1.4.1