From 3b7184680b3db71519e8c828bd738e5b9029ea97 Mon Sep 17 00:00:00 2001 From: naskya Date: Tue, 25 Jun 2024 16:34:49 +0900 Subject: [PATCH] manage dependencies in root workspace --- Cargo.toml | 17 +++++++++++++++++ fishctl/Cargo.toml | 30 +++++++++++++++--------------- 2 files changed, 32 insertions(+), 15 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 75d5f1b..806d3f3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,20 @@ [workspace] members = ["fishctl", "macros"] resolver = "2" + +[workspace.dependencies] +chrono = "0.4" +clap = "4.5" +color-print = "0.3" +enum-iterator = "2.1" +redis = "0.25" +serde = "1.0" +serde_repr = "0.1" +sqlx = "0.7" +thiserror = "1.0" +tokio = "1.38" +toml = "0.8" +url = "2.5" +vapid = "0.6" +validator = "0.18" +yaml-rust = "0.4" diff --git a/fishctl/Cargo.toml b/fishctl/Cargo.toml index 1f2c1ad..a848396 100644 --- a/fishctl/Cargo.toml +++ b/fishctl/Cargo.toml @@ -7,21 +7,21 @@ edition = "2021" license = "MIT" [dependencies] -chrono = "0.4" -clap = { version = "4.5", features = ["derive"] } -color-print = "0.3" -enum-iterator = "2.1" -redis = { version = "0.25", features = ["tokio-comp"] } -serde = { version = "1.0", features = ["derive"] } -serde_repr = "0.1" -sqlx = { version = "0.7", features = ["runtime-tokio", "postgres"] } -thiserror = "1.0" -tokio = { version = "1.38", features = ["full"] } -toml = "0.8" -url = "2.5" -vapid = "0.6" -validator = { version = "0.18", features = ["derive"] } -yaml-rust = "0.4" +chrono = { workspace = true } +clap = { workspace = true, features = ["derive"] } +color-print = { workspace = true } +enum-iterator = { workspace = true } +redis = { workspace = true, features = ["tokio-comp"] } +serde = { workspace = true, features = ["derive"] } +serde_repr = { workspace = true } +sqlx = { workspace = true, features = ["runtime-tokio", "postgres"] } +thiserror = { workspace = true } +tokio = { workspace = true, features = ["full"] } +toml = { workspace = true } +url = { workspace = true } +vapid = { workspace = true } +validator = { workspace = true, features = ["derive"] } +yaml-rust = { workspace = true } [profile.release] lto = true