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/tcp.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/tcp.rs')
-rw-r--r-- | tests/tcp.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tcp.rs b/tests/tcp.rs index 5fb38b1b..5384d8b1 100644 --- a/tests/tcp.rs +++ b/tests/tcp.rs @@ -1,6 +1,6 @@ extern crate env_logger; extern crate futures; -extern crate futures_mio; +extern crate tokio_core; use std::net::{TcpListener, TcpStream}; use std::sync::mpsc::channel; @@ -19,7 +19,7 @@ macro_rules! t { #[test] fn connect() { drop(env_logger::init()); - let mut l = t!(futures_mio::Loop::new()); + let mut l = t!(tokio_core::Loop::new()); let srv = t!(TcpListener::bind("127.0.0.1:0")); let addr = t!(srv.local_addr()); let t = thread::spawn(move || { @@ -37,7 +37,7 @@ fn connect() { #[test] fn accept() { drop(env_logger::init()); - 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()); @@ -63,7 +63,7 @@ fn accept() { #[test] fn accept2() { drop(env_logger::init()); - 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()); |