Repository: MarcoIeni/release-plz
Pull request #211 (2022-07-16 09:17:52)

update to cargo edit 10
<!-- Please explain the changes you made -->

<!--
Please, make sure:
- you have read the contributing guidelines:
  https://github.com/MarcoIeni/release-plz/blob/main/docs/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.lock b/Cargo.lock
index 90a564da..a9e01f16 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -275,7 +275,7 @@ dependencies = [
  "tar",
  "tempfile",
  "termcolor",
- "toml_edit",
+ "toml_edit 0.13.4",
  "unicode-width",
  "unicode-xid",
  "url",
@@ -298,9 +298,9 @@ dependencies = [
 
 [[package]]
 name = "cargo-edit"
-version = "0.9.1"
+version = "0.10.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "34965aea9b211a43ace81105894e2e2d15103be244884b31f26065e7538fe30b"
+checksum = "0136de79ac8989cf7dd86999117d7853f86299f85cbe7317b44be7a32852eb68"
 dependencies = [
  "anyhow",
  "cargo_metadata",
@@ -322,7 +322,7 @@ dependencies = [
  "serde_json",
  "subprocess",
  "termcolor",
- "toml_edit",
+ "toml_edit 0.14.4",
  "ureq",
  "url",
 ]
@@ -360,9 +360,9 @@ dependencies = [
 
 [[package]]
 name = "cargo_metadata"
-version = "0.14.2"
+version = "0.15.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4acbb09d9ee8e23699b9634375c72795d095bf268439da88562cf9b501f181fa"
+checksum = "3abb7553d5b9b8421c6de7cb02606ff15e0c6eea7d8eadd75ef013fd636bec36"
 dependencies = [
  "camino",
  "cargo-platform",
@@ -1663,6 +1663,15 @@ dependencies = [
  "serde",
 ]
 
+[[package]]
+name = "kstring"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec3066350882a1cd6d950d055997f379ac37fd39f81cd4d8ed186032eb3c5747"
+dependencies = [
+ "static_assertions",
+]
+
 [[package]]
 name = "language-tags"
 version = "0.3.2"
@@ -2440,7 +2449,7 @@ dependencies = [
  "tempfile",
  "test_logs",
  "tokio",
- "toml_edit",
+ "toml_edit 0.14.4",
  "tracing",
  "url",
  "walkdir",
@@ -3221,7 +3230,20 @@ dependencies = [
  "combine",
  "indexmap",
  "itertools",
- "kstring",
+ "kstring 1.0.6",
+ "serde",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.14.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5376256e44f2443f8896ac012507c19a012df0fe8758b55246ae51a2279db51f"
+dependencies = [
+ "combine",
+ "indexmap",
+ "itertools",
+ "kstring 2.0.0",
  "serde",
 ]
 
diff --git a/crates/next_version/Cargo.toml b/crates/next_version/Cargo.toml
index 631f1960..1f45f7df 100644
--- a/crates/next_version/Cargo.toml
+++ b/crates/next_version/Cargo.toml
@@ -13,4 +13,4 @@ categories = ["development-tools", "parsing"]
 [dependencies]
 semver = "1.0.12"
 conventional_commit_parser = "0.9.4"
-cargo-edit = { version = "0.9.1", features = ["set-version"], default-features = false }
+cargo-edit = { version = "0.10.1", features = ["set-version"], default-features = false }
diff --git a/crates/release_plz_core/Cargo.toml b/crates/release_plz_core/Cargo.toml
index 5e8084a6..d3ea74d5 100644
--- a/crates/release_plz_core/Cargo.toml
+++ b/crates/release_plz_core/Cargo.toml
@@ -16,9 +16,9 @@ git_cmd = { path = "../git_cmd", version = "0.1.6" }
 
 anyhow = "1.0.58"
 cargo = "0.61.1"
-cargo_metadata = "0.14.2"
+cargo_metadata = "0.15.0"
 cargo-clone = "1.0.1"
-cargo-edit = { version = "0.9.1", features = ["set-version"], default-features = false }
+cargo-edit = { version = "0.10.1", features = ["set-version"], default-features = false }
 chrono = { version = "0.4.19", features = ["clock"], default-features = false }
 crates-index = "0.18.8"
 fs_extra = "1.2.0"
@@ -30,7 +30,7 @@ tempfile = "3.3.0"
 tracing = "0.1.35"
 url = "2.2.2"
 walkdir = "2.3.2"
-toml_edit = "0.13.4"
+toml_edit = "0.14.4"
 
 [dev-dependencies]
 test_logs = { path = "../test_logs" }
diff --git a/crates/release_plz_core/src/next_ver.rs b/crates/release_plz_core/src/next_ver.rs
index c44bf8d6..2f277672 100644
--- a/crates/release_plz_core/src/next_ver.rs
+++ b/crates/release_plz_core/src/next_ver.rs
@@ -8,7 +8,7 @@ use crate::{
 };
 use anyhow::{anyhow, Context};
 use cargo_edit::{upgrade_requirement, LocalManifest, VersionExt};
-use cargo_metadata::{Package, Version};
+use cargo_metadata::{semver::Version, Package};
 use chrono::{Date, Utc};
 use fs_extra::dir;
 use git_cliff_core::config::Config as GitCliffConfig;
diff --git a/crates/release_plz_core/src/update.rs b/crates/release_plz_core/src/update.rs
index 08a5e42f..e9a51769 100644
--- a/crates/release_plz_core/src/update.rs
+++ b/crates/release_plz_core/src/update.rs
@@ -1,7 +1,7 @@
 use crate::{tmp_repo::TempRepo, PackagePath, UpdateRequest, UpdateResult};
 use anyhow::{anyhow, Context};
 use cargo_edit::{upgrade_requirement, LocalManifest};
-use cargo_metadata::{Package, Version};
+use cargo_metadata::{semver::Version, Package};
 use std::{fs, path::Path};
 
 use tracing::{debug, instrument};
diff --git a/crates/release_plz_core/src/version.rs b/crates/release_plz_core/src/version.rs
index 1ea86d15..6299b1b9 100644
--- a/crates/release_plz_core/src/version.rs
+++ b/crates/release_plz_core/src/version.rs
@@ -1,4 +1,4 @@
-use cargo_metadata::Version;
+use cargo_metadata::semver::Version;
 use next_version::NextVersion;
 
 use crate::diff::Diff;


Test patch:
diff --git a/crates/release_plz_core/tests/all/update.rs b/crates/release_plz_core/tests/all/update.rs
index accc56b1..f3ab752a 100644
--- a/crates/release_plz_core/tests/all/update.rs
+++ b/crates/release_plz_core/tests/all/update.rs
@@ -1,4 +1,4 @@
-use cargo_metadata::Version;
+use cargo_metadata::semver::Version;
 use release_plz_core::{read_package, CHANGELOG_HEADER};
 
 use crate::helpers::{comparison_test::ComparisonTest, user_mock};