From a28653653a5e09a402a137af33e0a8626bb02530 Mon Sep 17 00:00:00 2001 From: Arne Beer Date: Thu, 9 Feb 2023 10:40:53 +0100 Subject: [PATCH] chore: Use workspace for shared dev-dependencies --- Cargo.toml | 6 ++++++ pueue/Cargo.toml | 8 +++++--- pueue_lib/Cargo.toml | 9 +++++---- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8d91349c..ece9f606 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,11 +18,17 @@ command-group = "2" log = "0.4" serde = "1.0" serde_json = "1.0" +serde_yaml = "0.9" serde_derive = "1.0" snap = "1.1" strum = "0.24" strum_macros = "0.24" tokio = { version = "1.24", features = ["rt-multi-thread", "time", "io-std"] } +# Dev dependencies +anyhow = "1" +better-panic = "0.3" +pretty_assertions = "1" + [profile.release] lto = "thin" diff --git a/pueue/Cargo.toml b/pueue/Cargo.toml index 38850d13..26478173 100644 --- a/pueue/Cargo.toml +++ b/pueue/Cargo.toml @@ -44,12 +44,14 @@ tokio = { workspace = true } [dev-dependencies] assert_cmd = "2" -better-panic = "0.3" -pretty_assertions = "1" rstest = "0.16" -serde_yaml = "0.9" similar-asserts = "1" +anyhow = { workspace = true } +better-panic = { workspace = true } +pretty_assertions = { workspace = true } +serde_yaml = { workspace = true } + # Make it easy to view log output for select tests. # Set log level for tests with RUST_LOG=, use with failed tests or # disable test stdout/stderr capture (`cargo test -- --nocapture` / `cargo diff --git a/pueue_lib/Cargo.toml b/pueue_lib/Cargo.toml index ba35992a..d148972c 100644 --- a/pueue_lib/Cargo.toml +++ b/pueue_lib/Cargo.toml @@ -42,12 +42,13 @@ strum_macros = { workspace = true } tokio = { workspace = true, features = ["macros", "net", "io-util"] } [dev-dependencies] -anyhow = "1" -better-panic = "0.3" -pretty_assertions = "1" portpicker = "0.1" tempdir = "0.3" -tokio = { version = "1", features = ["time"] } + +anyhow = { workspace = true } +better-panic = { workspace = true } +pretty_assertions = { workspace = true } +tokio = { workspace = true } # --- Platform specific dependencies --- # Windows