Remove the tokio-core dependency where not necessary

This commit is contained in:
Pierre Krieger
2017-12-04 16:18:27 +01:00
parent 4a767e00c0
commit 900bf67623
5 changed files with 11 additions and 9 deletions

View File

@ -12,6 +12,8 @@ rand = "0.3.17"
ring = { version = "0.12.1", features = ["rsa_signing"] }
rust-crypto = "^0.2"
rw-stream-sink = { path = "../rw-stream-sink" }
tokio-core = "0.1.6"
tokio-io = "0.1.0"
untrusted = "0.6.0"
[dev-dependencies]
tokio-core = "0.1.6"

View File

@ -57,6 +57,7 @@ pub fn full_codec<S>(
#[cfg(test)]
mod tests {
extern crate tokio_core;
use super::DecoderMiddleware;
use super::EncoderMiddleware;
use super::full_codec;
@ -71,9 +72,9 @@ mod tests {
use ring::hmac::SigningKey;
use ring::hmac::VerificationKey;
use std::io::Error as IoError;
use tokio_core::net::TcpListener;
use tokio_core::net::TcpStream;
use tokio_core::reactor::Core;
use self::tokio_core::net::TcpListener;
use self::tokio_core::net::TcpStream;
use self::tokio_core::reactor::Core;
use tokio_io::codec::length_delimited::Framed;
#[test]

View File

@ -443,6 +443,7 @@ fn stretch_key(key: &SigningKey, result: &mut [u8]) {
#[cfg(test)]
mod tests {
extern crate tokio_core;
use super::handshake;
use super::stretch_key;
use futures::Future;
@ -451,9 +452,9 @@ mod tests {
use ring::hmac::SigningKey;
use ring::signature::RSAKeyPair;
use std::sync::Arc;
use tokio_core::net::TcpListener;
use tokio_core::net::TcpStream;
use tokio_core::reactor::Core;
use self::tokio_core::net::TcpListener;
use self::tokio_core::net::TcpStream;
use self::tokio_core::reactor::Core;
use untrusted::Input;
#[test]

View File

@ -40,7 +40,6 @@ extern crate protobuf;
extern crate rand;
extern crate ring;
extern crate rw_stream_sink;
extern crate tokio_core;
extern crate tokio_io;
extern crate untrusted;

View File

@ -9,7 +9,6 @@ multiaddr = "0.2.0"
multistream-select = { path = "../multistream-select" }
futures = "0.1"
smallvec = "0.5"
tokio-core = "0.1"
tokio-io = "0.1"
[dev-dependencies]