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.
This commit is contained in:
Alex Crichton
2016-08-26 14:39:47 -07:00
parent e71d509fee
commit f107c8d860
29 changed files with 1495 additions and 77 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
extern crate futures;
extern crate futures_mio;
extern crate tokio_core;
use std::io;
use std::net::SocketAddr;
use futures::{Future, Poll};
use futures_mio::UdpSocket;
use tokio_core::UdpSocket;
macro_rules! t {
($e:expr) => (match $e {
@@ -16,7 +16,7 @@ macro_rules! t {
#[test]
fn send_messages() {
let mut l = t!(futures_mio::Loop::new());
let mut l = t!(tokio_core::Loop::new());
let a = l.handle().udp_bind(&"127.0.0.1:0".parse().unwrap());
let b = l.handle().udp_bind(&"127.0.0.1:0".parse().unwrap());
let (a, b) = t!(l.run(a.join(b)));