diff options
author | Alex Crichton <alex@alexcrichton.com> | 2016-08-26 14:30:46 -0700 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2016-08-26 14:39:47 -0700 |
commit | f107c8d860137b41e509b179d605db30082cb0da (patch) | |
tree | 063e7b0c86785f70a63458e17183602e58d9c7f3 /tests/chain.rs | |
parent | e71d509fee767d6b796ba18a5501f80f0fb4babc (diff) |
Rename to tokio-core, add in futures-io
Renames the futures-mio crate to tokio-core, pulls in the futures-io crate under
an `io` module, and gets everything compiling.
Diffstat (limited to 'tests/chain.rs')
-rw-r--r-- | tests/chain.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/chain.rs b/tests/chain.rs index 410b9a0e..daeb52ab 100644 --- a/tests/chain.rs +++ b/tests/chain.rs @@ -1,6 +1,5 @@ extern crate futures; -extern crate futures_io; -extern crate futures_mio; +extern crate tokio_core; use std::net::TcpStream; use std::thread; @@ -8,7 +7,7 @@ use std::io::{Write, Read}; use futures::Future; use futures::stream::Stream; -use futures_io::read_to_end; +use tokio_core::io::read_to_end; macro_rules! t { ($e:expr) => (match $e { @@ -19,7 +18,7 @@ macro_rules! t { #[test] fn chain_clients() { - let mut l = t!(futures_mio::Loop::new()); + let mut l = t!(tokio_core::Loop::new()); let srv = l.handle().tcp_listen(&"127.0.0.1:0".parse().unwrap()); let srv = t!(l.run(srv)); let addr = t!(srv.local_addr()); |