From 1ab9ec3ebcd4206003d40585fbb35a253c4bb00e Mon Sep 17 00:00:00 2001 From: nibon7 Date: Sat, 6 Jan 2024 00:19:46 +0800 Subject: [PATCH] Bump terminal_size to 0.3 (#11486) # Description Simplify the dependencies. There are two different versions of `terminal_size` that nushell directly depends on. Related: #8060 --- Cargo.lock | 63 +++++++----------------------------- crates/nu-explore/Cargo.toml | 2 +- 2 files changed, 12 insertions(+), 53 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 794549e63..2a4ea32bc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1281,7 +1281,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef033ed5e9bad94e55838ca0ca906db0e043f517adda0c8b79c7a8c66c93c1b5" dependencies = [ "cfg-if", - "rustix 0.38.28", + "rustix", "windows-sys 0.48.0", ] @@ -1884,17 +1884,6 @@ version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0508c56cfe9bfd5dfeb0c22ab9a6abfda2f27bdca422132e494266351ed8d83c" -[[package]] -name = "io-lifetimes" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" -dependencies = [ - "hermit-abi", - "libc", - "windows-sys 0.48.0", -] - [[package]] name = "is-docker" version = "0.2.0" @@ -1911,7 +1900,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" dependencies = [ "hermit-abi", - "rustix 0.38.28", + "rustix", "windows-sys 0.48.0", ] @@ -2233,12 +2222,6 @@ dependencies = [ "serde", ] -[[package]] -name = "linux-raw-sys" -version = "0.3.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" - [[package]] name = "linux-raw-sys" version = "0.4.12" @@ -2924,7 +2907,7 @@ dependencies = [ "nu-utils", "ratatui", "strip-ansi-escapes", - "terminal_size 0.2.6", + "terminal_size 0.3.0", "unicode-width", ] @@ -4194,7 +4177,7 @@ dependencies = [ "hex", "lazy_static", "procfs-core", - "rustix 0.38.28", + "rustix", ] [[package]] @@ -4644,20 +4627,6 @@ dependencies = [ "semver", ] -[[package]] -name = "rustix" -version = "0.37.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea8ca367a3a01fe35e6943c400addf443c0f57670e6ec51196f71a4b8762dd2" -dependencies = [ - "bitflags 1.3.2", - "errno", - "io-lifetimes", - "libc", - "linux-raw-sys 0.3.8", - "windows-sys 0.48.0", -] - [[package]] name = "rustix" version = "0.38.28" @@ -4667,7 +4636,7 @@ dependencies = [ "bitflags 2.4.1", "errno", "libc", - "linux-raw-sys 0.4.12", + "linux-raw-sys", "windows-sys 0.52.0", ] @@ -5325,7 +5294,7 @@ dependencies = [ "cfg-if", "fastrand", "redox_syscall", - "rustix 0.38.28", + "rustix", "windows-sys 0.48.0", ] @@ -5359,23 +5328,13 @@ dependencies = [ "winapi", ] -[[package]] -name = "terminal_size" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e6bf6f19e9f8ed8d4048dc22981458ebcf406d67e94cd422e5ecd73d63b3237" -dependencies = [ - "rustix 0.37.27", - "windows-sys 0.48.0", -] - [[package]] name = "terminal_size" version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21bebf2b7c9e0a515f6e0f8c51dc0f8e4696391e6f1ff30379559f8365fb0df7" dependencies = [ - "rustix 0.38.28", + "rustix", "windows-sys 0.48.0", ] @@ -6083,7 +6042,7 @@ dependencies = [ "either", "home", "once_cell", - "rustix 0.38.28", + "rustix", ] [[package]] @@ -6095,7 +6054,7 @@ dependencies = [ "either", "home", "once_cell", - "rustix 0.38.28", + "rustix", "windows-sys 0.48.0", ] @@ -6410,8 +6369,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7dae5072fe1f8db8f8d29059189ac175196e410e40ba42d5d4684ae2f750995" dependencies = [ "libc", - "linux-raw-sys 0.4.12", - "rustix 0.38.28", + "linux-raw-sys", + "rustix", ] [[package]] diff --git a/crates/nu-explore/Cargo.toml b/crates/nu-explore/Cargo.toml index 13bce52aa..2173d93f3 100644 --- a/crates/nu-explore/Cargo.toml +++ b/crates/nu-explore/Cargo.toml @@ -20,7 +20,7 @@ nu-table = { path = "../nu-table", version = "0.88.2" } nu-json = { path = "../nu-json", version = "0.88.2" } nu-utils = { path = "../nu-utils", version = "0.88.2" } -terminal_size = "0.2" +terminal_size = "0.3" strip-ansi-escapes = "0.2.0" crossterm = "0.27" ratatui = "0.23"