remove unused dependencies (#11938)

# Description

This PR removes unused dependencies. The `cargo machete --with-metadata`
tool was used to determine what is unused and then I recompiled. Putting
this up here to see what happens in MacOS and Linux in the CI and see if
anything breaks.

# 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 std testing; testing run-tests --path
crates/nu-std"` 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-02-22 16:31:37 -06:00
committed by GitHub
parent 99ba365c4a
commit a2a1c1656f
9 changed files with 0 additions and 38 deletions

View File

@ -11,15 +11,11 @@ version = "0.90.2"
[dependencies]
nu-engine = { path = "../nu-engine", version = "0.90.2" }
nu-glob = { path = "../nu-glob", version = "0.90.2" }
nu-parser = { path = "../nu-parser", version = "0.90.2" }
nu-path = { path = "../nu-path", version = "0.90.2" }
nu-protocol = { path = "../nu-protocol", version = "0.90.2" }
nu-utils = { path = "../nu-utils", version = "0.90.2" }
indexmap = "2.2"
miette = "7.1.0"
[dev-dependencies]
nu-test-support = { path = "../nu-test-support", version = "0.90.2" }
rstest = "0.18.2"

View File

@ -71,4 +71,3 @@ default = []
[dev-dependencies]
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.90.2" }
nu-test-support = { path = "../nu-test-support", version = "0.90.2" }

View File

@ -22,7 +22,6 @@ nu-utils = { path = "../nu-utils", version = "0.90.2" }
# Potential dependencies for extras
heck = "0.4.1"
num-traits = "0.2"
ahash = "0.8.3"
nu-ansi-term = "0.50.0"
fancy-regex = "0.13.0"
rust-embed = "8.2.0"

View File

@ -16,9 +16,7 @@ nu-engine = { path = "../nu-engine", version = "0.90.2" }
nu-parser = { path = "../nu-parser", version = "0.90.2" }
nu-protocol = { path = "../nu-protocol", version = "0.90.2" }
nu-utils = { path = "../nu-utils", version = "0.90.2" }
nu-ansi-term = "0.50.0"
fancy-regex = "0.13"
itertools = "0.12"
shadow-rs = { version = "0.26", default-features = false }

View File

@ -13,7 +13,6 @@ bench = false
[dependencies]
nu-protocol = { path = "../nu-protocol", version = "0.90.2" }
nu-ansi-term = "0.50.0"
nu-utils = { path = "../nu-utils", version = "0.90.2" }
nu-engine = { path = "../nu-engine", version = "0.90.2" }
nu-json = { path = "../nu-json", version = "0.90.2" }

View File

@ -53,12 +53,10 @@ itertools = "0.12"
log = "0.4"
lscolors = { version = "0.17", default-features = false, features = ["nu-ansi-term"] }
md5 = { package = "md-5", version = "0.10" }
miette = { version = "7.1", features = ["fancy-no-backtrace"] }
mime = "0.3"
mime_guess = "2.0"
native-tls = "0.2"
notify-debouncer-full = { version = "0.3", default-features = false }
num = { version = "0.4", optional = true }
num-format = { version = "0.4" }
num-traits = "0.2"
once_cell = "1.18"

View File

@ -28,4 +28,3 @@ nu-command = { path = "../nu-command", version = "0.90.2" }
nu-test-support = { path = "../nu-test-support", version = "0.90.2" }
assert-json-diff = "2.0"
tempfile = "3.2"