From c75029f59ec5d5e51dede0ce2873358a5d0d3290 Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Sat, 13 Mar 2021 18:40:54 -0500 Subject: [PATCH] Move tokio to dev and add rt-multi-threaded Tokio is not needed in the main library and is only used for tests, and thus can be safely moved to a dev-dependency. The rt-multi-threaded feature of tokio is needed for some examples. --- Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index af3ae99..5e77f32 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,6 @@ include = [ [dependencies] reqwest = { version = "0.11.0", features = ["json", "rustls-tls"], default-features = false } -tokio = { version = "1.2", features = ["macros"] } serde = { version = "1.0", features = ["derive"] } rustc-serialize = "0.3.24" enum-iterator = "0.6.0" @@ -24,3 +23,6 @@ enum-iterator = "0.6.0" dotenv = "0.15.0" log = "0.4.8" env_logger = "0.8.2" + +[dev-dependencies] +tokio = { version = "1.2", features = ["macros", "rt-multi-thread"] }