mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
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:
+3
-3
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user