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"] }
|
ring = { version = "0.12.1", features = ["rsa_signing"] }
|
||||||
rust-crypto = "^0.2"
|
rust-crypto = "^0.2"
|
||||||
rw-stream-sink = { path = "../rw-stream-sink" }
|
rw-stream-sink = { path = "../rw-stream-sink" }
|
||||||
tokio-core = "0.1.6"
|
|
||||||
tokio-io = "0.1.0"
|
tokio-io = "0.1.0"
|
||||||
untrusted = "0.6.0"
|
untrusted = "0.6.0"
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
tokio-core = "0.1.6"
|
||||||
|
@ -57,6 +57,7 @@ pub fn full_codec<S>(
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
extern crate tokio_core;
|
||||||
use super::DecoderMiddleware;
|
use super::DecoderMiddleware;
|
||||||
use super::EncoderMiddleware;
|
use super::EncoderMiddleware;
|
||||||
use super::full_codec;
|
use super::full_codec;
|
||||||
@ -71,9 +72,9 @@ mod tests {
|
|||||||
use ring::hmac::SigningKey;
|
use ring::hmac::SigningKey;
|
||||||
use ring::hmac::VerificationKey;
|
use ring::hmac::VerificationKey;
|
||||||
use std::io::Error as IoError;
|
use std::io::Error as IoError;
|
||||||
use tokio_core::net::TcpListener;
|
use self::tokio_core::net::TcpListener;
|
||||||
use tokio_core::net::TcpStream;
|
use self::tokio_core::net::TcpStream;
|
||||||
use tokio_core::reactor::Core;
|
use self::tokio_core::reactor::Core;
|
||||||
use tokio_io::codec::length_delimited::Framed;
|
use tokio_io::codec::length_delimited::Framed;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -443,6 +443,7 @@ fn stretch_key(key: &SigningKey, result: &mut [u8]) {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
extern crate tokio_core;
|
||||||
use super::handshake;
|
use super::handshake;
|
||||||
use super::stretch_key;
|
use super::stretch_key;
|
||||||
use futures::Future;
|
use futures::Future;
|
||||||
@ -451,9 +452,9 @@ mod tests {
|
|||||||
use ring::hmac::SigningKey;
|
use ring::hmac::SigningKey;
|
||||||
use ring::signature::RSAKeyPair;
|
use ring::signature::RSAKeyPair;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use tokio_core::net::TcpListener;
|
use self::tokio_core::net::TcpListener;
|
||||||
use tokio_core::net::TcpStream;
|
use self::tokio_core::net::TcpStream;
|
||||||
use tokio_core::reactor::Core;
|
use self::tokio_core::reactor::Core;
|
||||||
use untrusted::Input;
|
use untrusted::Input;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
@ -40,7 +40,6 @@ extern crate protobuf;
|
|||||||
extern crate rand;
|
extern crate rand;
|
||||||
extern crate ring;
|
extern crate ring;
|
||||||
extern crate rw_stream_sink;
|
extern crate rw_stream_sink;
|
||||||
extern crate tokio_core;
|
|
||||||
extern crate tokio_io;
|
extern crate tokio_io;
|
||||||
extern crate untrusted;
|
extern crate untrusted;
|
||||||
|
|
||||||
|
@ -9,7 +9,6 @@ multiaddr = "0.2.0"
|
|||||||
multistream-select = { path = "../multistream-select" }
|
multistream-select = { path = "../multistream-select" }
|
||||||
futures = "0.1"
|
futures = "0.1"
|
||||||
smallvec = "0.5"
|
smallvec = "0.5"
|
||||||
tokio-core = "0.1"
|
|
||||||
tokio-io = "0.1"
|
tokio-io = "0.1"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
Reference in New Issue
Block a user