From 87823b0cb56a4d906c3808df7bbe6ed079242e71 Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Wed, 3 Aug 2022 11:55:58 +0200 Subject: [PATCH] Reduce dev-deps by narrowing `rstest` features (#6215) `rstest = 0.12` added support for asynchronous timeouts during testing thus requiring a larger set of dependencies. Since `rstest = 0.14` this can be disabled if not used. Should keep build times for local or CI tests in check. --- Cargo.lock | 8 -------- Cargo.toml | 2 +- crates/nu-cli/Cargo.toml | 2 +- crates/nu-command/Cargo.toml | 2 +- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e19dd63be..e2ba2249b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1329,12 +1329,6 @@ version = "0.3.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57c66a976bf5909d801bbef33416c41372779507e7a6b3a5e25e4749c58f776a" -[[package]] -name = "futures-timer" -version = "3.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e64b03909df88034c26dc1547e8970b91f98bdb65165d6a4e9110d94263dbb2c" - [[package]] name = "futures-util" version = "0.3.21" @@ -4021,8 +4015,6 @@ version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e9c9dc66cc29792b663ffb5269be669f1613664e69ad56441fdb895c2347b930" dependencies = [ - "futures", - "futures-timer", "rstest_macros", "rustc_version 0.4.0", ] diff --git a/Cargo.toml b/Cargo.toml index 1240c0005..8624bb1f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -70,7 +70,7 @@ assert_cmd = "2.0.2" pretty_assertions = "1.0.0" serial_test = "0.8.0" hamcrest2 = "0.3.0" -rstest = "0.15.0" +rstest = {version = "0.15.0", default-features = false} itertools = "0.10.3" [target.'cfg(windows)'.build-dependencies] diff --git a/crates/nu-cli/Cargo.toml b/crates/nu-cli/Cargo.toml index 3e1eabb4d..9c51fc390 100644 --- a/crates/nu-cli/Cargo.toml +++ b/crates/nu-cli/Cargo.toml @@ -9,7 +9,7 @@ version = "0.66.3" [dev-dependencies] nu-test-support = { path="../nu-test-support", version = "0.66.3" } nu-command = { path = "../nu-command", version = "0.66.3" } -rstest = "0.15.0" +rstest = {version = "0.15.0", default-features = false} [dependencies] nu-engine = { path = "../nu-engine", version = "0.66.3" } diff --git a/crates/nu-command/Cargo.toml b/crates/nu-command/Cargo.toml index d74c0cd47..0b94ffdcd 100644 --- a/crates/nu-command/Cargo.toml +++ b/crates/nu-command/Cargo.toml @@ -134,4 +134,4 @@ hamcrest2 = "0.3.0" dirs-next = "2.0.0" quickcheck = "1.0.3" quickcheck_macros = "1.0.0" -rstest = "0.15.0" +rstest = {version = "0.15.0", default-features = false}