From c8fdbed27a23321bb149a45aad5910d32c24be2c Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Fri, 1 Nov 2019 22:25:13 -0700 Subject: [PATCH] chore: prune dev-dependencies Most dev dependendencies are unused now that examples are moved into a separate crate. --- tokio/Cargo.toml | 16 +--------------- tokio/tests/rt_current_thread.rs | 2 -- tokio/tests/rt_thread_pool.rs | 4 ---- 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/tokio/Cargo.toml b/tokio/Cargo.toml index b01d16af0..7380b1eac 100644 --- a/tokio/Cargo.toml +++ b/tokio/Cargo.toml @@ -119,24 +119,10 @@ optional = true [dev-dependencies] tokio-test = { version = "=0.2.0-alpha.6", path = "../tokio-test" } -tokio-util = { version = "=0.2.0-alpha.6", path = "../tokio-util" } - futures-preview = { version = "=0.3.0-alpha.19", features = ["async-await"] } -env_logger = { version = "0.6", default-features = false } -flate2 = { version = "1", features = ["tokio"] } -http = "0.1" -httparse = "1.0" -libc = "0.2" loom = { version = "0.2.12", features = ["futures", "checkpoint"] } -num_cpus = "1.0" -rand = "0.7.2" -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" -tempfile = "3.1.0" -time = "0.1" - -# sharded slab tests proptest = "0.9.4" +tempfile = "3.1.0" [package.metadata.docs.rs] all-features = true diff --git a/tokio/tests/rt_current_thread.rs b/tokio/tests/rt_current_thread.rs index 1f0fdecec..637fa68f0 100644 --- a/tokio/tests/rt_current_thread.rs +++ b/tokio/tests/rt_current_thread.rs @@ -282,8 +282,6 @@ fn delay_in_spawn() { #[test] fn client_server_block_on() { - let _ = env_logger::try_init(); - let mut rt = rt(); let (tx, rx) = mpsc::channel(); diff --git a/tokio/tests/rt_thread_pool.rs b/tokio/tests/rt_thread_pool.rs index 8bdbe24f9..367e931f9 100644 --- a/tokio/tests/rt_thread_pool.rs +++ b/tokio/tests/rt_thread_pool.rs @@ -44,8 +44,6 @@ fn send_sync_bound() { #[test] fn spawn_shutdown() { - let _ = env_logger::try_init(); - let mut rt = Runtime::new().unwrap(); let (tx, rx) = mpsc::channel(); @@ -167,8 +165,6 @@ fn nested_enter() { fn after_start_and_before_stop_is_called() { use std::sync::atomic::{AtomicUsize, Ordering}; - let _ = env_logger::try_init(); - let after_start = Arc::new(AtomicUsize::new(0)); let before_stop = Arc::new(AtomicUsize::new(0));