From ff93a2b2c2269d37ea8d9a73b98c5bc76287a745 Mon Sep 17 00:00:00 2001 From: Arne Beer Date: Wed, 23 Oct 2024 12:22:00 +0200 Subject: [PATCH] refactor: Use concise workspace syntax --- pueue/Cargo.toml | 40 ++++++++++++++++++++-------------------- pueue_lib/Cargo.toml | 36 ++++++++++++++++++------------------ 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/pueue/Cargo.toml b/pueue/Cargo.toml index 9533b180..f2681826 100644 --- a/pueue/Cargo.toml +++ b/pueue/Cargo.toml @@ -4,54 +4,54 @@ version = "3.4.1" description = "A cli tool for managing long running shell commands." keywords = ["shell", "command", "parallel", "task", "queue"] readme = "../README.md" -authors = { workspace = true } -homepage = { workspace = true } -repository = { workspace = true } -license = { workspace = true } -edition = { workspace = true } -rust-version = { workspace = true } +authors.workspace = true +homepage.workspace = true +repository.workspace = true +license.workspace = true +edition.workspace = true +rust-version.workspace = true [badges] maintenance = { status = "actively-developed" } [dependencies] anyhow = "1.0" -chrono = { workspace = true } +chrono.workspace = true clap = { version = "4.5.1", features = ["derive", "cargo", "help"] } clap_complete = "4.5.1" clap_complete_nushell = "4.5.1" comfy-table = "7" -command-group = { workspace = true } +command-group.workspace = true ctrlc = { version = "3", features = ["termination"] } -handlebars = { workspace = true } +handlebars.workspace = true interim = { version = "0.1.2", features = ["chrono"] } -log = { workspace = true } +log.workspace = true pest = "2.7" pest_derive = "2.7" pueue-lib = { version = "0.26.1", path = "../pueue_lib" } -serde = { workspace = true } -serde_json = { workspace = true } +serde.workspace = true +serde_json.workspace = true shell-escape = "0.1" simplelog = "0.12" -snap = { workspace = true } -strum = { workspace = true } -strum_macros = { workspace = true } +snap.workspace = true +strum.workspace = true +strum_macros.workspace = true tempfile = "3" -tokio = { workspace = true } +tokio.workspace = true [dev-dependencies] -anyhow = { workspace = true } +anyhow.workspace = true assert_cmd = "2" assert_matches = "1" -better-panic = { workspace = true } +better-panic.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 # nextest run --no-capture`) env_logger = "0.11" -pretty_assertions = { workspace = true } +pretty_assertions.workspace = true rstest = "0.19" -serde_yaml = { workspace = true } +serde_yaml.workspace = true similar-asserts = "1" test-log = "0.2" diff --git a/pueue_lib/Cargo.toml b/pueue_lib/Cargo.toml index 260cbf04..59149668 100644 --- a/pueue_lib/Cargo.toml +++ b/pueue_lib/Cargo.toml @@ -5,11 +5,11 @@ description = "The shared library to work with the Pueue client and daemon." keywords = ["pueue"] readme = "README.md" authors = { workspace = true } -homepage = { workspace = true } -repository = { workspace = true } -license = { workspace = true } -edition = { workspace = true } -rust-version = { workspace = true } +homepage.workspace = true +repository.workspace = true +license.workspace = true +edition.workspace = true +rust-version.workspace = true [badges] maintenance = { status = "actively-developed" } @@ -18,11 +18,11 @@ maintenance = { status = "actively-developed" } anyhow = "1.0" async-trait = "0.1" byteorder = "1.5" -chrono = { workspace = true } -command-group = { workspace = true } +chrono.workspace = true +command-group.workspace = true dirs = "5.0" -handlebars = { workspace = true } -log = { workspace = true } +handlebars.workspace = true +log.workspace = true rand = "0.8" rcgen = "0.13" rev_buf_reader = "0.3" @@ -33,25 +33,25 @@ rustls = { version = "0.23", features = [ "tls12", ], default-features = false } rustls-pemfile = "2" -serde = { workspace = true } +serde.workspace = true serde_cbor = "0.11" -serde_json = { workspace = true } +serde_json.workspace = true serde_yaml = "0.9" shellexpand = "3.1" -snap = { workspace = true } -strum = { workspace = true } -strum_macros = { workspace = true } +snap.workspace = true +strum.workspace = true +strum_macros.workspace = true thiserror = "1.0" tokio = { workspace = true, features = ["macros", "net", "io-util"] } tokio-rustls = { version = "0.26", default-features = false } [dev-dependencies] -anyhow = { workspace = true } -better-panic = { workspace = true } +anyhow.workspace = true +better-panic.workspace = true portpicker = "0.1" -pretty_assertions = { workspace = true } +pretty_assertions.workspace = true tempfile = "3" -tokio = { workspace = true } +tokio.workspace = true # --- Platform specific dependencies --- # Windows