mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 01:01:34 +00:00
Remove the tokio-core dependency where not necessary
This commit is contained in:
@ -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"
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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]
|
||||
|
Reference in New Issue
Block a user