Repository: clap-rs/clap
Pull request #5758 (2024-10-01 00:37:05)

chore(deps): Update Rust crate terminal_size to 0.4.0
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [terminal_size](https://redirect.github.com/eminence/terminal-size) | dependencies | minor | `0.3.0` -> `0.4.0` |

---

### Release Notes

<details>
<summary>eminence/terminal-size (terminal_size)</summary>

### [`v0.4.0`](https://redirect.github.com/eminence/terminal-size/releases/tag/v0.4.0)

[Compare Source](https://redirect.github.com/eminence/terminal-size/compare/v0.3.0...v0.4.0)

#### Breaking changes

The big change in this release is the API change in [#&#8203;66](https://redirect.github.com/eminence/terminal-size/issues/66):

-   If you were using the `terminal_size_using_fd` or `terminal_size_using_handle` functions, these are now deprecated and unsafe.  Instead you should use the `terminal_size_of` function, which does the same thing but is safer.

#### What's Changed

-   Add `rust-version` in Cargo.toml by [@&#8203;cgwalters](https://redirect.github.com/cgwalters) in [https://github.com/eminence/terminal-size/pull/60](https://redirect.github.com/eminence/terminal-size/pull/60)
-   Update `windows-sys` to 0.52 by [@&#8203;barrbrain](https://redirect.github.com/barrbrain) in [https://github.com/eminence/terminal-size/pull/62](https://redirect.github.com/eminence/terminal-size/pull/62)
-   Update windows-sys to 0.59 by [@&#8203;eminence](https://redirect.github.com/eminence) in [https://github.com/eminence/terminal-size/pull/67](https://redirect.github.com/eminence/terminal-size/pull/67)
-   Update the API for I/O safety by [@&#8203;sunfishcode](https://redirect.github.com/sunfishcode) in [https://github.com/eminence/terminal-size/pull/66](https://redirect.github.com/eminence/terminal-size/pull/66)
-   Fix typo, link to docs, update docs by [@&#8203;waywardmonkeys](https://redirect.github.com/waywardmonkeys) in [https://github.com/eminence/terminal-size/pull/63](https://redirect.github.com/eminence/terminal-size/pull/63)
-   Update CI: Use current actions, remove unused build step by [@&#8203;waywardmonkeys](https://redirect.github.com/waywardmonkeys) in [https://github.com/eminence/terminal-size/pull/64](https://redirect.github.com/eminence/terminal-size/pull/64)

#### New Contributors

-   [@&#8203;cgwalters](https://redirect.github.com/cgwalters) made their first contribution in [https://github.com/eminence/terminal-size/pull/60](https://redirect.github.com/eminence/terminal-size/pull/60)
-   [@&#8203;barrbrain](https://redirect.github.com/barrbrain) made their first contribution in [https://github.com/eminence/terminal-size/pull/62](https://redirect.github.com/eminence/terminal-size/pull/62)
-   [@&#8203;waywardmonkeys](https://redirect.github.com/waywardmonkeys) made their first contribution in [https://github.com/eminence/terminal-size/pull/63](https://redirect.github.com/eminence/terminal-size/pull/63)

**Full Changelog**: https://github.com/eminence/terminal-size/compare/v0.3.0...v0.4.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/clap-rs/clap).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC45Ny4wIiwidXBkYXRlZEluVmVyIjoiMzguOTcuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->



Patch:
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 20e68bb0..7a7e792e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -164,7 +164,7 @@ jobs:
     - name: Install Rust
       uses: dtolnay/rust-toolchain@stable
       with:
-        toolchain: "1.81.0"  # STABLE
+        toolchain: "1.80"  # STABLE
     - uses: Swatinem/rust-cache@v2
     - name: UI Tests
       run: make test-ui-${{ matrix.features }}
@@ -207,7 +207,7 @@ jobs:
     - name: Install Rust
       uses: dtolnay/rust-toolchain@stable
       with:
-        toolchain: "1.81.0"  # STABLE
+        toolchain: "1.80"  # STABLE
     - uses: Swatinem/rust-cache@v2
     - name: Check documentation
       env:
@@ -222,7 +222,7 @@ jobs:
     - name: Install Rust
       uses: dtolnay/rust-toolchain@stable
       with:
-        toolchain: "1.81.0"  # STABLE
+        toolchain: "1.80"  # STABLE
         components: rustfmt
     - uses: Swatinem/rust-cache@v2
     - name: Check formatting
@@ -236,7 +236,7 @@ jobs:
     - name: Install Rust
       uses: dtolnay/rust-toolchain@stable
       with:
-        toolchain: "1.81.0"  # STABLE
+        toolchain: "1.80"  # STABLE
         components: clippy
     - uses: Swatinem/rust-cache@v2
     - name: Lint (ultra-minimal)
diff --git a/Cargo.lock b/Cargo.lock
index f95cd5a6..50c93e9a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -466,7 +466,7 @@ dependencies = [
  "color-print",
  "static_assertions",
  "strsim",
- "terminal_size 0.3.0",
+ "terminal_size 0.4.0",
  "unic-emoji-char",
  "unicase",
  "unicode-width",
@@ -1440,7 +1440,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "e310b3a6b5907f99202fcdb4960ff45b93735d7c7d96b760fcff8db2dc0e103d"
 dependencies = [
  "cfg-if",
- "windows-targets 0.48.5",
+ "windows-targets 0.52.6",
 ]
 
 [[package]]
@@ -2979,9 +2979,9 @@ checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c"
 
 [[package]]
 name = "snapbox"
-version = "0.6.17"
+version = "0.6.16"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "840b73eb3148bc3cbc10ebe00ec9bc6d96033e658d022c4adcbf3f35596fd64a"
+checksum = "027c936207f85d10d015e21faf5c676c7e08c453ed371adf55c0874c443ca77a"
 dependencies = [
  "anstream",
  "anstyle",
@@ -2997,7 +2997,7 @@ dependencies = [
  "tempfile",
  "wait-timeout",
  "walkdir",
- "windows-sys 0.59.0",
+ "windows-sys 0.52.0",
 ]
 
 [[package]]
@@ -3165,6 +3165,16 @@ dependencies = [
  "windows-sys 0.48.0",
 ]
 
+[[package]]
+name = "terminal_size"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4f599bd7ca042cfdf8f4512b277c02ba102247820f9d9d4a9f521f496751a6ef"
+dependencies = [
+ "rustix",
+ "windows-sys 0.59.0",
+]
+
 [[package]]
 name = "textwrap"
 version = "0.15.2"
@@ -3315,11 +3325,10 @@ dependencies = [
 
 [[package]]
 name = "trycmd"
-version = "0.15.7"
+version = "0.15.6"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "288c25d9be00f5ac52a3b3ff7720248c223096534ec34e870188f1bc93f2465c"
+checksum = "3e8673f1dc45acdff8e25a06cc62f8e529563e8acd84237ce83d5a28e2befa12"
 dependencies = [
- "anstream",
  "automod",
  "glob",
  "humantime",
diff --git a/Makefile b/Makefile
index 2e6bd409..47596be8 100644
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ ifneq (${TOOLCHAIN_TARGET},)
   ARGS+=--target ${TOOLCHAIN_TARGET}
 endif
 
-STABLE?=1.81.0
+STABLE?=1.80
 
 _FEATURES = minimal default wasm full debug release
 _FEATURES_minimal = --no-default-features --features "std"
diff --git a/clap_builder/Cargo.toml b/clap_builder/Cargo.toml
index dc31f78c..75a6e425 100644
--- a/clap_builder/Cargo.toml
+++ b/clap_builder/Cargo.toml
@@ -64,7 +64,7 @@ unicase = { version = "2.6.0", optional = true }
 strsim = { version = "0.11.0",  optional = true }
 anstream = { version = "0.6.7", optional = true }
 anstyle = "1.0.8"
-terminal_size = { version = "0.3.0", optional = true }
+terminal_size = { version = "0.4.0", optional = true }
 backtrace = { version = "0.3.73", optional = true }
 unicode-width = { version = "0.1.9", optional = true }
 


Test patch:
diff --git a/tests/derive_ui.rs b/tests/derive_ui.rs
index bf04f96c..7f679c2e 100644
--- a/tests/derive_ui.rs
+++ b/tests/derive_ui.rs
@@ -8,7 +8,7 @@
 #![cfg(feature = "unstable-derive-ui-tests")]
 
 #[cfg(feature = "derive")]
-#[rustversion::attr(not(stable(1.81.0)), ignore)] // STABLE
+#[rustversion::attr(not(stable(1.80)), ignore)] // STABLE
 #[test]
 fn ui() {
     let t = trybuild::TestCases::new();