Skip to content

Commit

Permalink
chore: builder: Widen terminal_size compat to include 3.0
Browse files Browse the repository at this point in the history
For some reason, terminal_size bumped semver recently; they
also bumped the rustix version to 0.38.

I'd like to reduce the number of copies of OS integration
crates (rustix and nix) in my dependency chain.  By widening
terminal_size to include 3.x we allow builders to opt in to
the update.

(Now honestly, given terminal_size boils down to basically
 *one function* I have no idea why they bumped semver, the
 API appears to be the same because we continue to build
 with both, as you'd expect)
  • Loading branch information
cgwalters committed Sep 18, 2023
1 parent 7f8df27 commit 321f154
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
24 changes: 17 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clap_builder/Cargo.toml
Expand Up @@ -63,7 +63,7 @@ unicase = { version = "2.6.0", optional = true }
strsim = { version = "0.10.0", optional = true }
anstream = { version = "0.5.0", optional = true }
anstyle = "1.0.0"
terminal_size = { version = "0.2.1", optional = true }
terminal_size = { version = ">= 0.2.1, <= 3.0", optional = true }
backtrace = { version = "0.3.67", optional = true }
unicode-width = { version = "0.1.9", optional = true }

Expand Down

0 comments on commit 321f154

Please sign in to comment.