Skip to content

Commit

Permalink
chore: Use workspace for shared dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Nukesor committed Feb 9, 2023
1 parent 4be6221 commit a286536
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
8 changes: 5 additions & 3 deletions pueue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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=<level>, use with failed tests or
# disable test stdout/stderr capture (`cargo test -- --nocapture` / `cargo
Expand Down
9 changes: 5 additions & 4 deletions pueue_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a286536

Please sign in to comment.