Repository: probe-rs/probe-rs
Pull request #1421 (2023-01-25 00:36:06)

build(deps): bump clap from 4.1.2 to 4.1.4
Bumps [clap](https://github.com/clap-rs/clap) from 4.1.2 to 4.1.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/clap-rs/clap/releases">clap's releases</a>.</em></p>
<blockquote>
<h2>v4.1.4</h2>
<h2>[4.1.4] - 2023-01-24</h2>
<h3>Fixes</h3>
<ul>
<li><em>(help)</em> Respect <code>disable_colored_help</code> when using <code>arg_required_else_help</code></li>
</ul>
<h3>Performance</h3>
<ul>
<li>Speed up compiling <code>arg!</code> macro</li>
</ul>
<h2>v4.1.3</h2>
<h2>[4.1.3] - 2023-01-23</h2>
<h3>Fixes</h3>
<ul>
<li><em>(error)</em> Improve suggested flag/value/subcommand when two share a long preifx</li>
<li><em>(error)</em> When suggesting one of several subcommands, use the plural <code>subcommands</code>, rather than <code>subcommand</code></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/clap-rs/clap/blob/master/CHANGELOG.md">clap's changelog</a>.</em></p>
<blockquote>
<h2>[4.1.4] - 2023-01-24</h2>
<h3>Fixes</h3>
<ul>
<li><em>(help)</em> Respect <code>disable_colored_help</code> when using <code>arg_required_else_help</code></li>
</ul>
<h3>Performance</h3>
<ul>
<li>Speed up compiling <code>arg!</code> macro</li>
</ul>
<h2>[4.1.3] - 2023-01-23</h2>
<h3>Fixes</h3>
<ul>
<li><em>(error)</em> Improve suggested flag/value/subcommand when two share a long preifx</li>
<li><em>(error)</em> When suggesting one of several subcommands, use the plural <code>subcommands</code>, rather than <code>subcommand</code></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/clap-rs/clap/commit/a59a53503e85359b535574faae9e3e94ad43cc5d"><code>a59a535</code></a> chore: Release</li>
<li><a href="https://github.com/clap-rs/clap/commit/4348f43b216dae2d6a57af18dbfdb0ae12ae9cc9"><code>4348f43</code></a> docs: Update changelog</li>
<li><a href="https://github.com/clap-rs/clap/commit/7c4c6586d0ff90c560e29fe56c2535577b7ace1f"><code>7c4c658</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/clap-rs/clap/issues/4673">#4673</a> from epage/arg</li>
<li><a href="https://github.com/clap-rs/clap/commit/bbe5eaa70918a557d66f592098ee3db3b72f3f6e"><code>bbe5eaa</code></a> perf: Speed up compiling <code>arg!</code> macro</li>
<li><a href="https://github.com/clap-rs/clap/commit/b3c4b4016cc201f6b33cb183acde8a29b5a592d9"><code>b3c4b40</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/clap-rs/clap/issues/4672">#4672</a> from epage/help</li>
<li><a href="https://github.com/clap-rs/clap/commit/dc89379ff6d819482039009c0d51a44921a033e2"><code>dc89379</code></a> fix(help): Respect <code>disable_colored_help</code> for <code>arg_required_else_help</code></li>
<li><a href="https://github.com/clap-rs/clap/commit/10a87c662d2fc246f1578c7ed64a08cd44c7b72a"><code>10a87c6</code></a> chore: Release</li>
<li><a href="https://github.com/clap-rs/clap/commit/8ee9242a0e05e2f6fbe04fd6a70f7a5c9d349822"><code>8ee9242</code></a> docs: Update changelog</li>
<li><a href="https://github.com/clap-rs/clap/commit/125dbe0cfdadd0d31df8366bcd0ba2efcbbe5ced"><code>125dbe0</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/clap-rs/clap/issues/4667">#4667</a> from corneliusroemer/fix-4666</li>
<li><a href="https://github.com/clap-rs/clap/commit/401d86fb9c6ed46a138be8f42e0ce86665fa25f3"><code>401d86f</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/clap-rs/clap/issues/4668">#4668</a> from corneliusroemer/fix-4660</li>
<li>Additional commits viewable in <a href="https://github.com/clap-rs/clap/compare/v4.1.2...v4.1.4">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=clap&package-manager=cargo&previous-version=4.1.2&new-version=4.1.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Patch:
diff --git a/Cargo.lock b/Cargo.lock
index df7de5b5..3c699dd7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -416,7 +416,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "0f1204fe51a1e56042b8ec31d6407547ecd18f596b66f470dadb9abd9be9c843"
 dependencies = [
  "serde",
- "toml",
+ "toml 0.5.11",
 ]
 
 [[package]]
@@ -467,9 +467,9 @@ dependencies = [
 
 [[package]]
 name = "clap"
-version = "4.1.2"
+version = "4.1.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0e638668a62aced2c9fb72b5135a33b4a500485ccf2a0e402e09aa04ab2fc115"
+checksum = "f13b9c79b5d1dd500d20ef541215a6423c75829ef43117e1b4d17fd8af0b5d76"
 dependencies = [
  "bitflags",
  "clap_derive",
@@ -965,7 +965,7 @@ dependencies = [
  "serde",
  "serde_json",
  "serde_yaml",
- "toml",
+ "toml 0.5.11",
  "uncased",
  "version_check",
 ]
@@ -1878,6 +1878,15 @@ dependencies = [
  "libc",
 ]
 
+[[package]]
+name = "nom8"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae01545c9c7fc4486ab7debaf2aad7003ac19431791868fb2e8066df97fad2f8"
+dependencies = [
+ "memchr",
+]
+
 [[package]]
 name = "normalize-line-endings"
 version = "0.3.0"
@@ -3002,6 +3011,15 @@ dependencies = [
  "syn",
 ]
 
+[[package]]
+name = "serde_spanned"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2c68e921cef53841b8925c2abadd27c9b891d9613bdc43d6b823062866df38e8"
+dependencies = [
+ "serde",
+]
+
 [[package]]
 name = "serde_urlencoded"
 version = "0.7.1"
@@ -3137,7 +3155,7 @@ dependencies = [
  "pretty_env_logger",
  "probe-rs",
  "serde",
- "toml",
+ "toml 0.6.0",
 ]
 
 [[package]]
@@ -3464,6 +3482,40 @@ dependencies = [
  "serde",
 ]
 
+[[package]]
+name = "toml"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4fb9d890e4dc9298b70f740f615f2e05b9db37dce531f6b24fb77ac993f9f217"
+dependencies = [
+ "serde",
+ "serde_spanned",
+ "toml_datetime",
+ "toml_edit",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4553f467ac8e3d374bc9a177a26801e5d0f9b211aa1673fb137a403afd1c9cf5"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.18.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "729bfd096e40da9c001f778f5cdecbd2957929a24e10e5883d9392220a751581"
+dependencies = [
+ "indexmap",
+ "nom8",
+ "serde",
+ "serde_spanned",
+ "toml_datetime",
+]
+
 [[package]]
 name = "tower-service"
 version = "0.3.2"
diff --git a/cargo-flash/Cargo.toml b/cargo-flash/Cargo.toml
index d7c61b1f..27576617 100644
--- a/cargo-flash/Cargo.toml
+++ b/cargo-flash/Cargo.toml
@@ -33,7 +33,7 @@ anyhow = "1"
 bytesize = "1"
 thiserror = "1"
 dunce = "1"
-clap = { version = "4.1.0", features = ["string"] }
+clap = { version = "4.1.4", features = ["string"] }
 
 [dev-dependencies]
 assert_cmd = "2"
diff --git a/debugger/Cargo.toml b/debugger/Cargo.toml
index 10774b2e..80eb51ac 100644
--- a/debugger/Cargo.toml
+++ b/debugger/Cargo.toml
@@ -25,7 +25,7 @@ probe-rs-cli-util = { workspace = true }
 tracing-subscriber = { version = "0.3.16", features = ["env-filter", "json"] }
 tracing = { version = "0.1.37", features = ["log"] }
 scroll = "0.11.0"
-clap = { version = "4.0", features = ["derive", "cargo"] }
+clap = { version = "4.1", features = ["derive", "cargo"] }
 capstone = "0.11.0"
 thiserror = { workspace = true }
 anyhow = { workspace = true }
diff --git a/probe-rs-cli-util/Cargo.toml b/probe-rs-cli-util/Cargo.toml
index 1925d0a3..35521622 100644
--- a/probe-rs-cli-util/Cargo.toml
+++ b/probe-rs-cli-util/Cargo.toml
@@ -36,7 +36,7 @@ dunce = "1.0.1"
 sentry = { version = "0.29.0", features = ["anyhow"], optional = true }
 simplelog = "0.12.0"
 terminal_size = "0.2.0"
-clap = { version = "4.0", features = ["derive"] }
+clap = { version = "4.1", features = ["derive"] }
 byte-unit = "4.0.13"
 chrono = { version = "0.4", features = ["serde"] }
 goblin = "0.6.0"
diff --git a/probe-rs/Cargo.toml b/probe-rs/Cargo.toml
index 4db85843..31e94304 100644
--- a/probe-rs/Cargo.toml
+++ b/probe-rs/Cargo.toml
@@ -78,7 +78,7 @@ pretty_env_logger = "0.4.0"
 rand = "0.8.0"
 serde_json = "1.0.47"
 serde = "1"
-clap = { version = "4.0", features = ["derive"] }
+clap = { version = "4.1", features = ["derive"] }
 itm = { version = "0.9.0-rc.1", default-features = false }
 
 [[package.metadata.release.pre-release-replacements]]
diff --git a/rtthost/Cargo.toml b/rtthost/Cargo.toml
index 1f40d392..d3835790 100644
--- a/rtthost/Cargo.toml
+++ b/rtthost/Cargo.toml
@@ -11,4 +11,4 @@ repository.workspace = true
 pretty_env_logger = "0.4.0"
 probe-rs = { workspace = true }
 probe-rs-rtt = { workspace = true }
-clap = { version = "4.0", features = ["derive"] }
+clap = { version = "4.1", features = ["derive"] }
diff --git a/target-gen/Cargo.toml b/target-gen/Cargo.toml
index 4d8a9a04..a53a0463 100644
--- a/target-gen/Cargo.toml
+++ b/target-gen/Cargo.toml
@@ -23,7 +23,7 @@ scroll = "0.11.0"
 serde_yaml = "^0.9"
 log = "0.4.16"
 zip = "0.6.2"
-clap = { version = "4.0", features = ["derive"] }
+clap = { version = "4.1", features = ["derive"] }
 base64 = "0.21.0"
 simplelog = "0.12.0"
 anyhow = "1.0.57"


Test patch:
diff --git a/smoke-tester/Cargo.toml b/smoke-tester/Cargo.toml
index f506aee5..438abfee 100644
--- a/smoke-tester/Cargo.toml
+++ b/smoke-tester/Cargo.toml
@@ -15,5 +15,5 @@ anyhow = "1.0.40"
 serde = { version = "1", features = ["derive"] }
 pretty_env_logger = "0.4.0"
 log = "0.4.14"
-clap = "4.0"
+clap = "4.1"
 colored = "2.0.0"