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
<!-- List of all changes that impact the user experience here. This
helps us keep track of breaking changes. -->

# Tests + Formatting
<!--
Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used` to
check that you're using the standard code style
- `cargo test --workspace` to check that all tests pass (on Windows make
sure to [enable developer
mode](https://learn.microsoft.com/en-us/windows/apps/get-started/developer-mode-features-and-debugging))
- `cargo run -- -c "use toolkit.nu; toolkit test stdlib"` to run the
tests for the standard library

> **Note**
> from `nushell` you can also use the `toolkit` as follows
> ```bash
> use toolkit.nu # or use an `env_change` hook to activate it
automatically
> toolkit check pr
> ```
-->

# After Submitting
<!-- If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
-->
This commit is contained in:
Darren Schroeder 2024-09-06 09:57:45 -05:00 committed by GitHub
parent 3d20c53904
commit edd69aa283
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 28 additions and 11 deletions

35
Cargo.lock generated
View file

@ -852,7 +852,7 @@ version = "7.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b34115915337defe99b2aff5c2ce6771e5fbc4079f4b506301f5cf394c8452f7" checksum = "b34115915337defe99b2aff5c2ce6771e5fbc4079f4b506301f5cf394c8452f7"
dependencies = [ dependencies = [
"crossterm", "crossterm 0.27.0",
"strum", "strum",
"strum_macros", "strum_macros",
"unicode-width", "unicode-width",
@ -1027,6 +1027,22 @@ dependencies = [
"libc", "libc",
"mio 0.8.11", "mio 0.8.11",
"parking_lot", "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", "serde",
"signal-hook", "signal-hook",
"signal-hook-mio", "signal-hook-mio",
@ -2749,6 +2765,7 @@ checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec"
dependencies = [ dependencies = [
"hermit-abi 0.3.9", "hermit-abi 0.3.9",
"libc", "libc",
"log",
"wasi", "wasi",
"windows-sys 0.52.0", "windows-sys 0.52.0",
] ]
@ -2924,7 +2941,7 @@ name = "nu"
version = "0.97.2" version = "0.97.2"
dependencies = [ dependencies = [
"assert_cmd", "assert_cmd",
"crossterm", "crossterm 0.28.1",
"ctrlc", "ctrlc",
"dirs", "dirs",
"log", "log",
@ -2979,7 +2996,7 @@ name = "nu-cli"
version = "0.97.2" version = "0.97.2"
dependencies = [ dependencies = [
"chrono", "chrono",
"crossterm", "crossterm 0.28.1",
"fancy-regex", "fancy-regex",
"fuzzy-matcher", "fuzzy-matcher",
"is_executable", "is_executable",
@ -3096,7 +3113,7 @@ dependencies = [
"chrono", "chrono",
"chrono-humanize", "chrono-humanize",
"chrono-tz 0.8.6", "chrono-tz 0.8.6",
"crossterm", "crossterm 0.28.1",
"csv", "csv",
"data-encoding", "data-encoding",
"dialoguer", "dialoguer",
@ -3220,7 +3237,7 @@ version = "0.97.2"
dependencies = [ dependencies = [
"ansi-str", "ansi-str",
"anyhow", "anyhow",
"crossterm", "crossterm 0.28.1",
"log", "log",
"lscolors", "lscolors",
"nu-ansi-term", "nu-ansi-term",
@ -5030,7 +5047,7 @@ dependencies = [
"bitflags 2.6.0", "bitflags 2.6.0",
"cassowary", "cassowary",
"compact_str", "compact_str",
"crossterm", "crossterm 0.27.0",
"itertools 0.12.1", "itertools 0.12.1",
"lru", "lru",
"paste", "paste",
@ -5119,12 +5136,11 @@ dependencies = [
[[package]] [[package]]
name = "reedline" name = "reedline"
version = "0.34.0" version = "0.34.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "git+https://github.com/nushell/reedline?branch=main#7af89595377fa59d2a6a2333718d60adf61c86b1"
checksum = "dc271368d0d3f395745b40fababc0c9061f3fc2978189a8bc76f889e47255b01"
dependencies = [ dependencies = [
"arboard", "arboard",
"chrono", "chrono",
"crossterm", "crossterm 0.28.1",
"fd-lock", "fd-lock",
"itertools 0.12.1", "itertools 0.12.1",
"nu-ansi-term", "nu-ansi-term",
@ -5737,6 +5753,7 @@ checksum = "34db1a06d485c9142248b7a054f034b349b212551f3dfd19c94d45a754a217cd"
dependencies = [ dependencies = [
"libc", "libc",
"mio 0.8.11", "mio 0.8.11",
"mio 1.0.2",
"signal-hook", "signal-hook",
] ]

View file

@ -77,7 +77,7 @@ chrono = { default-features = false, version = "0.4.34" }
chrono-humanize = "0.2.3" chrono-humanize = "0.2.3"
chrono-tz = "0.8" chrono-tz = "0.8"
crossbeam-channel = "0.5.8" crossbeam-channel = "0.5.8"
crossterm = "0.27" crossterm = "0.28.1"
csv = "1.3" csv = "1.3"
ctrlc = "3.4" ctrlc = "3.4"
dialoguer = { default-features = false, version = "0.11" } 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 # 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 # changing versions in each sub-crate of the workspace is tedious
[patch.crates-io] [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"} # nu-ansi-term = {git = "https://github.com/nushell/nu-ansi-term.git", branch = "main"}
# Run all benchmarks with `cargo bench` # Run all benchmarks with `cargo bench`