From edd69aa2833a0445ff0e9080ed79aae01578c1c2 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Fri, 6 Sep 2024 09:57:45 -0500 Subject: [PATCH] update the latest reedline (#13797) # Description I swear, I only did `cargo update -p reedline`. However, I feel down the dependency rabbit hole. We need to get nushell on crossterm 28.1 and ratatui on 28.1 but we can't because tabled uses papergrid which uses an older version of unicode-width that can't be upgraded apparently. Ugh. I've opened an issue at the tabled repo about this. # User-Facing Changes # Tests + Formatting # After Submitting --- Cargo.lock | 35 ++++++++++++++++++++++++++--------- Cargo.toml | 4 ++-- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index eca168dbe2..6206c85482 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -852,7 +852,7 @@ version = "7.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b34115915337defe99b2aff5c2ce6771e5fbc4079f4b506301f5cf394c8452f7" dependencies = [ - "crossterm", + "crossterm 0.27.0", "strum", "strum_macros", "unicode-width", @@ -1027,6 +1027,22 @@ dependencies = [ "libc", "mio 0.8.11", "parking_lot", + "signal-hook", + "signal-hook-mio", + "winapi", +] + +[[package]] +name = "crossterm" +version = "0.28.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6" +dependencies = [ + "bitflags 2.6.0", + "crossterm_winapi", + "mio 1.0.2", + "parking_lot", + "rustix", "serde", "signal-hook", "signal-hook-mio", @@ -2749,6 +2765,7 @@ checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" dependencies = [ "hermit-abi 0.3.9", "libc", + "log", "wasi", "windows-sys 0.52.0", ] @@ -2924,7 +2941,7 @@ name = "nu" version = "0.97.2" dependencies = [ "assert_cmd", - "crossterm", + "crossterm 0.28.1", "ctrlc", "dirs", "log", @@ -2979,7 +2996,7 @@ name = "nu-cli" version = "0.97.2" dependencies = [ "chrono", - "crossterm", + "crossterm 0.28.1", "fancy-regex", "fuzzy-matcher", "is_executable", @@ -3096,7 +3113,7 @@ dependencies = [ "chrono", "chrono-humanize", "chrono-tz 0.8.6", - "crossterm", + "crossterm 0.28.1", "csv", "data-encoding", "dialoguer", @@ -3220,7 +3237,7 @@ version = "0.97.2" dependencies = [ "ansi-str", "anyhow", - "crossterm", + "crossterm 0.28.1", "log", "lscolors", "nu-ansi-term", @@ -5030,7 +5047,7 @@ dependencies = [ "bitflags 2.6.0", "cassowary", "compact_str", - "crossterm", + "crossterm 0.27.0", "itertools 0.12.1", "lru", "paste", @@ -5119,12 +5136,11 @@ dependencies = [ [[package]] name = "reedline" version = "0.34.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc271368d0d3f395745b40fababc0c9061f3fc2978189a8bc76f889e47255b01" +source = "git+https://github.com/nushell/reedline?branch=main#7af89595377fa59d2a6a2333718d60adf61c86b1" dependencies = [ "arboard", "chrono", - "crossterm", + "crossterm 0.28.1", "fd-lock", "itertools 0.12.1", "nu-ansi-term", @@ -5737,6 +5753,7 @@ checksum = "34db1a06d485c9142248b7a054f034b349b212551f3dfd19c94d45a754a217cd" dependencies = [ "libc", "mio 0.8.11", + "mio 1.0.2", "signal-hook", ] diff --git a/Cargo.toml b/Cargo.toml index 48bda05ba0..2bf290e96a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -77,7 +77,7 @@ chrono = { default-features = false, version = "0.4.34" } chrono-humanize = "0.2.3" chrono-tz = "0.8" crossbeam-channel = "0.5.8" -crossterm = "0.27" +crossterm = "0.28.1" csv = "1.3" ctrlc = "3.4" dialoguer = { default-features = false, version = "0.11" } @@ -313,7 +313,7 @@ bench = false # To use a development version of a dependency please use a global override here # changing versions in each sub-crate of the workspace is tedious [patch.crates-io] -# reedline = { git = "https://github.com/nushell/reedline", branch = "main" } +reedline = { git = "https://github.com/nushell/reedline", branch = "main" } # nu-ansi-term = {git = "https://github.com/nushell/nu-ansi-term.git", branch = "main"} # Run all benchmarks with `cargo bench`