diff --git a/contrib/lib/Cargo.toml b/contrib/lib/Cargo.toml index 5ee47a0c..f9b2618e 100644 --- a/contrib/lib/Cargo.toml +++ b/contrib/lib/Cargo.toml @@ -86,8 +86,5 @@ time = { version = "0.2.9", optional = true } brotli = { version = "3.3", optional = true } flate2 = { version = "1.0", optional = true } -[dev-dependencies] -tokio = { version = "0.2.0", features = ["time"] } - [package.metadata.docs.rs] all-features = true diff --git a/core/codegen/Cargo.toml b/core/codegen/Cargo.toml index 2079af82..e3d70c20 100644 --- a/core/codegen/Cargo.toml +++ b/core/codegen/Cargo.toml @@ -28,5 +28,4 @@ version_check = "0.9.1" [dev-dependencies] rocket = { version = "0.5.0-dev", path = "../lib" } -tokio = { version = "0.2.9", features = ["io-util"] } compiletest_rs = "0.5" diff --git a/core/codegen/tests/route-data.rs b/core/codegen/tests/route-data.rs index 1a5756d1..29c2fafd 100644 --- a/core/codegen/tests/route-data.rs +++ b/core/codegen/tests/route-data.rs @@ -5,6 +5,7 @@ use rocket::local::blocking::Client; use rocket::request::Form; use rocket::data::{self, FromDataSimple}; use rocket::http::{RawStr, ContentType, Status}; +use rocket::tokio::io::AsyncReadExt; // Test that the data parameters works as expected. @@ -20,8 +21,6 @@ impl FromDataSimple for Simple { fn from_data(_: &Request<'_>, data: Data) -> data::FromDataFuture<'static, Self, ()> { Box::pin(async { - use tokio::io::AsyncReadExt; - let mut string = String::new(); let mut stream = data.open().take(64); if let Err(_) = stream.read_to_string(&mut string).await { diff --git a/core/codegen/tests/route.rs b/core/codegen/tests/route.rs index 8ae81dad..67ad6603 100644 --- a/core/codegen/tests/route.rs +++ b/core/codegen/tests/route.rs @@ -13,6 +13,7 @@ use rocket::local::blocking::Client; use rocket::data::{self, Data, FromDataSimple}; use rocket::request::Form; use rocket::http::{Status, RawStr, ContentType}; +use rocket::tokio::io::AsyncReadExt; // Use all of the code generation avaiable at once. @@ -28,8 +29,6 @@ impl FromDataSimple for Simple { fn from_data(_: &Request<'_>, data: Data) -> data::FromDataFuture<'static, Self, ()> { Box::pin(async move { - use tokio::io::AsyncReadExt; - let mut string = String::new(); let mut stream = data.open().take(64); stream.read_to_string(&mut string).await.unwrap(); diff --git a/core/lib/Cargo.toml b/core/lib/Cargo.toml index 56bdb50c..5f24b429 100644 --- a/core/lib/Cargo.toml +++ b/core/lib/Cargo.toml @@ -52,4 +52,3 @@ version_check = "0.9.1" [dev-dependencies] # TODO: Find a way to not depend on this. lazy_static = "1.0" -tokio = { version = "0.2.9", features = ["macros"] }