From 91df6c236f30d3799fa00d3693c521acdb5cae26 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Tue, 20 Dec 2022 00:53:17 +0100 Subject: [PATCH] Remove unused deps or move to devdeps (#7537) # Description General tree shaking through `cargo +nightly udeps` and moving mentions of `nu-test-support` to the dev deps. Also since #7488 no separate import of `nu-path` necessary cc @webbedspace --- Cargo.lock | 3 --- crates/nu-cli/Cargo.toml | 1 - crates/nu-color-config/Cargo.toml | 6 +++--- crates/nu-table/Cargo.toml | 6 +++--- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 96fc7d2bbc..d4cbb57470 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2549,7 +2549,6 @@ dependencies = [ "nu-parser", "nu-path", "nu-protocol", - "nu-table", "nu-test-support", "nu-utils", "once_cell", @@ -2567,7 +2566,6 @@ dependencies = [ "nu-ansi-term", "nu-engine", "nu-json", - "nu-path", "nu-protocol", "nu-test-support", "nu-utils", @@ -2821,7 +2819,6 @@ dependencies = [ "nu-ansi-term", "nu-color-config", "nu-engine", - "nu-path", "nu-protocol", "nu-test-support", "nu-utils", diff --git a/crates/nu-cli/Cargo.toml b/crates/nu-cli/Cargo.toml index f48f6253c3..1f6353252d 100644 --- a/crates/nu-cli/Cargo.toml +++ b/crates/nu-cli/Cargo.toml @@ -18,7 +18,6 @@ nu-path = { path = "../nu-path", version = "0.72.2" } nu-parser = { path = "../nu-parser", version = "0.72.2" } nu-protocol = { path = "../nu-protocol", version = "0.72.2" } nu-utils = { path = "../nu-utils", version = "0.72.2" } -nu-table = { path = "../nu-table", version = "0.72.2" } nu-ansi-term = "0.46.0" nu-color-config = { path = "../nu-color-config", version = "0.72.2" } reedline = { version = "0.14.0", features = ["bashisms", "sqlite"]} diff --git a/crates/nu-color-config/Cargo.toml b/crates/nu-color-config/Cargo.toml index a0ce71aa1f..5177db0c6d 100644 --- a/crates/nu-color-config/Cargo.toml +++ b/crates/nu-color-config/Cargo.toml @@ -16,7 +16,7 @@ nu-protocol = { path = "../nu-protocol", version = "0.72.2" } nu-ansi-term = "0.46.0" nu-utils = { path = "../nu-utils", version = "0.72.2" } nu-engine = { path = "../nu-engine", version = "0.72.2" } -nu-test-support = { path="../nu-test-support", version = "0.72.2" } -# nu-path is used only for test support -nu-path = { path="../nu-path", version = "0.72.2" } nu-json = { path="../nu-json", version = "0.72.2" } + +[dev-dependencies] +nu-test-support = { path="../nu-test-support", version = "0.72.2" } diff --git a/crates/nu-table/Cargo.toml b/crates/nu-table/Cargo.toml index 847ae376c3..7e6bde538f 100644 --- a/crates/nu-table/Cargo.toml +++ b/crates/nu-table/Cargo.toml @@ -13,10 +13,10 @@ nu-protocol = { path = "../nu-protocol", version = "0.72.2" } nu-utils = { path = "../nu-utils", version = "0.72.2" } nu-engine = { path = "../nu-engine", version = "0.72.2" } nu-color-config = { path = "../nu-color-config", version = "0.72.2" } -nu-test-support = { path="../nu-test-support", version = "0.72.2" } -# nu-path is used only for test support -nu-path = { path="../nu-path", version = "0.72.2" } atty = "0.2.14" tabled = { version = "0.10.0", features = ["color"], default-features = false } json_to_table = { version = "0.3.1", features = ["color"] } serde_json = "1" + +[dev-dependencies] +nu-test-support = { path="../nu-test-support", version = "0.72.2" }