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

@ -14,7 +14,7 @@ bench = false
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.91.1" }
nu-command = { path = "../nu-command", version = "0.91.1" }
nu-test-support = { path = "../nu-test-support", version = "0.91.1" }
rstest = { version = "0.18.1", default-features = false }
rstest = { workspace = true, default-features = false }
[dependencies]
nu-cmd-base = { path = "../nu-cmd-base", version = "0.91.1" }
@ -24,24 +24,24 @@ nu-parser = { path = "../nu-parser", version = "0.91.1" }
nu-protocol = { path = "../nu-protocol", version = "0.91.1" }
nu-utils = { path = "../nu-utils", version = "0.91.1" }
nu-color-config = { path = "../nu-color-config", version = "0.91.1" }
nu-ansi-term = "0.50.0"
reedline = { version = "0.30.0", features = ["bashisms", "sqlite"] }
nu-ansi-term = { workspace = true }
reedline = { workspace = true, features = ["bashisms", "sqlite"] }
chrono = { default-features = false, features = ["std"], version = "0.4" }
crossterm = "0.27"
fancy-regex = "0.13"
chrono = { default-features = false, features = ["std"], workspace = true }
crossterm = { workspace = true }
fancy-regex = { workspace = true }
fuzzy-matcher = "0.3"
is_executable = "1.0"
log = "0.4"
miette = { version = "7.1", features = ["fancy-no-backtrace"] }
log = { workspace = true }
miette = { workspace = true, features = ["fancy-no-backtrace"] }
lscolors = { version = "0.17", default-features = false, features = ["nu-ansi-term"] }
once_cell = "1.18"
percent-encoding = "2"
pathdiff = "0.2"
sysinfo = "0.30"
unicode-segmentation = "1.11"
uuid = { version = "1.6.0", features = ["v4"] }
which = "6.0.0"
once_cell = { workspace = true }
percent-encoding = { workspace = true }
pathdiff = { workspace = true }
sysinfo = { workspace = true }
unicode-segmentation = { workspace = true }
uuid = { workspace = true, features = ["v4"] }
which = { workspace = true }
[features]
plugin = []