Introduce workspace dependencies (#12043)

# Description
This PR introduces [workspaces
dependencies](https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table).
The advantages are:
- a single place where dependency versions are declared
- reduces the number of files to change when upgrading a dependency
- reduces the risk of accidentally depending on 2 different versions of
the same dependency

I've only done a few so far. If this PR is accepted, I might continue
and progressively do the rest.

# User-Facing Changes
N/A

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`

# After Submitting
N/A
This commit is contained in:
Antoine Büsch
2024-03-08 09:40:31 +11:00
committed by GitHub
parent 93188b3eda
commit 979a97c455
19 changed files with 140 additions and 127 deletions

View File

@@ -11,7 +11,6 @@ version = "0.91.1"
bench = false
[dependencies]
nu-ansi-term = "0.50.0"
nu-protocol = { path = "../nu-protocol", version = "0.91.1" }
nu-parser = { path = "../nu-parser", version = "0.91.1" }
nu-color-config = { path = "../nu-color-config", version = "0.91.1" }
@@ -19,10 +18,11 @@ nu-engine = { path = "../nu-engine", version = "0.91.1" }
nu-table = { path = "../nu-table", version = "0.91.1" }
nu-json = { path = "../nu-json", version = "0.91.1" }
nu-utils = { path = "../nu-utils", version = "0.91.1" }
nu-ansi-term = { workspace = true }
terminal_size = "0.3"
strip-ansi-escapes = "0.2.0"
crossterm = "0.27"
crossterm = { workspace = true }
ratatui = "0.26"
ansi-str = "0.8"
unicode-width = "0.1"