Repository: MarcoIeni/release-plz
Pull request #333 (2022-11-03 22:32:45)

chore: use workspace dependencies
<!-- Please explain the changes you made -->

<!--
Please, make sure:
- you have read the contributing guidelines:
  https://github.com/MarcoIeni/release-plz/blob/main/CONTRIBUTING.md
- you have formatted the code using rustfmt:
  https://github.com/rust-lang/rustfmt
- you have checked that all tests pass, by running `cargo test --all`
-->



Patch:
diff --git a/Cargo.toml b/Cargo.toml
index c66a4d73..96ec41ec 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,2 +1,36 @@
 [workspace]
 members = ["crates/*"]
+
+[workspace.dependencies]
+anyhow = "1.0.66"
+cargo_metadata = "0.15.1"
+cargo-clone-core = "0.1.0"
+cargo-edit = { version = "0.11.3", default-features = false }
+chrono = { version = "0.4.22", default-features = false }
+claim = "0.5.0"
+clap = "4.0.18"
+clap_complete = "4.0.3"
+conventional_commit_parser = "0.9.4"
+crates-index = "0.18.9"
+dirs = "4.0.0"
+dunce = "1.0.3"
+expect-test = "1.4.0"
+fake = "2.5.0"
+fs_extra = "1.2.0"
+git-cliff = { version = "0.8.1", default_features = false }
+git-cliff-core = "0.8.1"
+git-url-parse = "0.4.3"
+octocrab = "0.17.0"
+once_cell = "1.16.0"
+secrecy = "0.8.0"
+semver = "1.0.14"
+serde_json = "1.0.87"
+tempfile = "3.3.0"
+tokio = "1.19.2"
+toml_edit = "0.14.4"
+tracing = "0.1.37"
+tracing-log = "0.1.3"
+tracing-subscriber = "0.3.15"
+url = "2.3.0"
+walkdir = "2.3.2"
+wiremock = "0.5.15"
diff --git a/crates/cargo_utils/Cargo.toml b/crates/cargo_utils/Cargo.toml
index 34d996cf..51db5fa3 100644
--- a/crates/cargo_utils/Cargo.toml
+++ b/crates/cargo_utils/Cargo.toml
@@ -11,6 +11,6 @@ categories = ["development-tools"]
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
 [dependencies]
-anyhow = "1.0.66"
-cargo_metadata = "0.15.1"
-dunce = "1.0.3"
+anyhow.workspace = true
+cargo_metadata.workspace = true
+dunce.workspace = true
diff --git a/crates/git_cmd/Cargo.toml b/crates/git_cmd/Cargo.toml
index 73dde89d..d0a044b6 100644
--- a/crates/git_cmd/Cargo.toml
+++ b/crates/git_cmd/Cargo.toml
@@ -14,12 +14,12 @@ categories = ["development-tools", "filesystem"]
 test_fixture = []
 
 [dependencies]
-anyhow = "1.0.66"
-tracing = "0.1.36"
+anyhow.workspace = true
+tracing.workspace = true
 
 [dev-dependencies]
-tempfile = "3.3.0"
-
-test_logs = { path = "../test_logs" }
 git_cmd = { path = ".", features = ["test_fixture"]}
-claim = "0.5.0"
+test_logs = { path = "../test_logs" }
+
+claim.workspace = true
+tempfile.workspace = true
diff --git a/crates/next_version/Cargo.toml b/crates/next_version/Cargo.toml
index 13e131fc..53bd2b89 100644
--- a/crates/next_version/Cargo.toml
+++ b/crates/next_version/Cargo.toml
@@ -11,5 +11,5 @@ categories = ["development-tools", "parsing"]
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
 [dependencies]
-semver = "1.0.14"
-conventional_commit_parser = "0.9.4"
+semver.workspace = true
+conventional_commit_parser.workspace = true
diff --git a/crates/release_plz/Cargo.toml b/crates/release_plz/Cargo.toml
index 32f26f27..44cee4f9 100644
--- a/crates/release_plz/Cargo.toml
+++ b/crates/release_plz/Cargo.toml
@@ -12,19 +12,19 @@ categories = ["command-line-utilities", "development-tools"]
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
 [dependencies]
-release_plz_core = { path = "../release_plz_core", version = "0.2.20" }
 git_cmd = { path = "../git_cmd", version = "0.2.1" }
+release_plz_core = { path = "../release_plz_core", version = "0.2.20" }
 
-anyhow = "1.0.66"
-chrono = { version = "0.4.22", features = ["clock"], default-features = false }
-clap = { version = "4.0.18", features = ["derive", "env"] }
-secrecy = "0.8.0"
-tokio = { version = "1.19.2", features = ["macros", "rt-multi-thread"] }
-tracing = "0.1.36"
-tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
-tracing-log = "0.1.3"
-url = "2.3.0"
-dirs = "4.0.0"
-git-cliff-core = "0.8.1"
-git-url-parse = "0.4.3"
-clap_complete = "4.0.3"
+anyhow.workspace = true
+chrono = { workspace = true, features = ["clock"] }
+clap = { workspace = true, features = ["derive", "env"] }
+clap_complete.workspace = true
+dirs.workspace = true
+git-cliff-core.workspace = true
+git-url-parse.workspace = true
+secrecy.workspace = true
+tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
+tracing-log.workspace = true
+tracing-subscriber = { workspace = true, features = ["env-filter"] }
+tracing.workspace = true
+url.workspace = true
diff --git a/crates/release_plz_core/Cargo.toml b/crates/release_plz_core/Cargo.toml
index 5b8d0ce1..d1804a69 100644
--- a/crates/release_plz_core/Cargo.toml
+++ b/crates/release_plz_core/Cargo.toml
@@ -11,34 +11,34 @@ categories = ["development-tools"]
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
 [dependencies]
-next_version = { path = "../next_version", version = "0.1" }
-git_cmd = { path = "../git_cmd", version = "0.2.1" }
 cargo_utils = { path = "../cargo_utils", version = "0.1.1" }
+git_cmd = { path = "../git_cmd", version = "0.2.1" }
+next_version = { path = "../next_version", version = "0.1" }
 
-anyhow = "1.0.66"
-cargo_metadata = "0.15.1"
-cargo-clone-core = "0.1.0"
-cargo-edit = { version = "0.11.3", features = ["set-version"], default-features = false }
-chrono = { version = "0.4.22", features = ["clock"], default-features = false }
-crates-index = "0.18.9"
-fs_extra = "1.2.0"
-git-cliff = { version = "0.8.1", default-features = false }
-git-cliff-core = "0.8.1"
-octocrab = "0.17.0"
-secrecy = "0.8.0"
-tempfile = "3.3.0"
-tracing = "0.1.36"
-url = "2.3.0"
-walkdir = "2.3.2"
-toml_edit = "0.14.4"
+anyhow.workspace = true
+cargo_metadata.workspace = true
+cargo-clone-core.workspace = true
+cargo-edit = { workspace = true, features = ["set-version"] }
+chrono = { workspace = true, features = ["clock"] }
+crates-index.workspace = true
+fs_extra.workspace = true
+git-cliff.workspace = true
+git-cliff-core.workspace = true
+octocrab.workspace = true
+secrecy.workspace = true
+tempfile.workspace = true
+tracing.workspace = true
+url.workspace = true
+walkdir.workspace = true
+toml_edit.workspace = true
 
 [dev-dependencies]
+git_cmd = { path = "../git_cmd", features = ["test_fixture"] }
 test_logs = { path = "../test_logs" }
 
-expect-test = "1.4.0"
-git_cmd = { path = "../git_cmd", features = ["test_fixture"] }
-tokio = { version = "1.19.2", features = ["macros"] }
-wiremock = "0.5.15"
-fake = "2.5.0"
-claim = "0.5.0"
-serde_json = "1.0.87"
+claim.workspace = true
+expect-test.workspace = true
+fake.workspace = true
+serde_json.workspace = true
+tokio = { workspace = true, features = ["macros"] }
+wiremock.workspace = true


Test patch:
diff --git a/crates/test_logs/Cargo.toml b/crates/test_logs/Cargo.toml
index 4df001b2..b14c35a2 100644
--- a/crates/test_logs/Cargo.toml
+++ b/crates/test_logs/Cargo.toml
@@ -11,7 +11,7 @@ categories = ["development-tools", "development-tools::testing"]
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
 
 [dependencies]
-once_cell = "1.16.0"
-tracing = "0.1.36"
-tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
-tracing-log = "0.1.3"
+once_cell.workspace = true
+tracing-log.workspace = true
+tracing-subscriber = { workspace = true, features = ["env-filter"] }
+tracing.workspace = true