From 7039602e4dd0c1f6d39eb5f069c76adbc54a8b62 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Sat, 29 Oct 2022 19:39:27 +0200 Subject: [PATCH] Move nu-test-support into dev deps on nu-command (#6940) This reduces the number of dependencies to build for `cargo build` or `cargo run` by around 19. Will not speed up CI as we need to `cargo test` but should help for `cargo install` or users just building from source. Time saved on my machine ~0.8 secs so likely unnoticable in noise. Larger future goal is reducing longer dependency chains to allow more parallel compilation. --- crates/nu-command/Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/nu-command/Cargo.toml b/crates/nu-command/Cargo.toml index f400018404..98523da1e4 100644 --- a/crates/nu-command/Cargo.toml +++ b/crates/nu-command/Cargo.toml @@ -22,7 +22,6 @@ nu-protocol = { path = "../nu-protocol", version = "0.70.1" } nu-system = { path = "../nu-system", version = "0.70.1" } nu-table = { path = "../nu-table", version = "0.70.1" } nu-term-grid = { path = "../nu-term-grid", version = "0.70.1" } -nu-test-support = { path = "../nu-test-support", version = "0.70.1" } nu-utils = { path = "../nu-utils", version = "0.70.1" } nu-ansi-term = "0.46.0" num-format = { version = "0.4.3" } @@ -154,6 +153,8 @@ database = ["sqlparser", "rusqlite"] shadow-rs = { version = "0.16.1", default-features = false } [dev-dependencies] +nu-test-support = { path = "../nu-test-support", version = "0.70.1" } + hamcrest2 = "0.3.0" dirs-next = "2.0.0" proptest = "1.0.0"