mirror of https://github.com/rwf2/Rocket.git
Remove unnecessary 'dev-dependencies'.
This commit is contained in:
parent
62355b424f
commit
f4c82d7ffe
|
@ -86,8 +86,5 @@ time = { version = "0.2.9", optional = true }
|
||||||
brotli = { version = "3.3", optional = true }
|
brotli = { version = "3.3", optional = true }
|
||||||
flate2 = { version = "1.0", optional = true }
|
flate2 = { version = "1.0", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
tokio = { version = "0.2.0", features = ["time"] }
|
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
|
|
|
@ -28,5 +28,4 @@ version_check = "0.9.1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rocket = { version = "0.5.0-dev", path = "../lib" }
|
rocket = { version = "0.5.0-dev", path = "../lib" }
|
||||||
tokio = { version = "0.2.9", features = ["io-util"] }
|
|
||||||
compiletest_rs = "0.5"
|
compiletest_rs = "0.5"
|
||||||
|
|
|
@ -5,6 +5,7 @@ use rocket::local::blocking::Client;
|
||||||
use rocket::request::Form;
|
use rocket::request::Form;
|
||||||
use rocket::data::{self, FromDataSimple};
|
use rocket::data::{self, FromDataSimple};
|
||||||
use rocket::http::{RawStr, ContentType, Status};
|
use rocket::http::{RawStr, ContentType, Status};
|
||||||
|
use rocket::tokio::io::AsyncReadExt;
|
||||||
|
|
||||||
// Test that the data parameters works as expected.
|
// 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, ()> {
|
fn from_data(_: &Request<'_>, data: Data) -> data::FromDataFuture<'static, Self, ()> {
|
||||||
Box::pin(async {
|
Box::pin(async {
|
||||||
use tokio::io::AsyncReadExt;
|
|
||||||
|
|
||||||
let mut string = String::new();
|
let mut string = String::new();
|
||||||
let mut stream = data.open().take(64);
|
let mut stream = data.open().take(64);
|
||||||
if let Err(_) = stream.read_to_string(&mut string).await {
|
if let Err(_) = stream.read_to_string(&mut string).await {
|
||||||
|
|
|
@ -13,6 +13,7 @@ use rocket::local::blocking::Client;
|
||||||
use rocket::data::{self, Data, FromDataSimple};
|
use rocket::data::{self, Data, FromDataSimple};
|
||||||
use rocket::request::Form;
|
use rocket::request::Form;
|
||||||
use rocket::http::{Status, RawStr, ContentType};
|
use rocket::http::{Status, RawStr, ContentType};
|
||||||
|
use rocket::tokio::io::AsyncReadExt;
|
||||||
|
|
||||||
// Use all of the code generation avaiable at once.
|
// 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, ()> {
|
fn from_data(_: &Request<'_>, data: Data) -> data::FromDataFuture<'static, Self, ()> {
|
||||||
Box::pin(async move {
|
Box::pin(async move {
|
||||||
use tokio::io::AsyncReadExt;
|
|
||||||
|
|
||||||
let mut string = String::new();
|
let mut string = String::new();
|
||||||
let mut stream = data.open().take(64);
|
let mut stream = data.open().take(64);
|
||||||
stream.read_to_string(&mut string).await.unwrap();
|
stream.read_to_string(&mut string).await.unwrap();
|
||||||
|
|
|
@ -52,4 +52,3 @@ version_check = "0.9.1"
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
# TODO: Find a way to not depend on this.
|
# TODO: Find a way to not depend on this.
|
||||||
lazy_static = "1.0"
|
lazy_static = "1.0"
|
||||||
tokio = { version = "0.2.9", features = ["macros"] }
|
|
||||||
|
|
Loading…
Reference in New Issue