mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
Migrate to using tokio-io
Deprecate the existing `io` module in this crate entirely. More details coming soon! Closes #61
This commit is contained in:
+10
@@ -90,9 +90,13 @@
|
||||
#![doc(html_root_url = "https://docs.rs/tokio-core/0.1")]
|
||||
#![deny(missing_docs)]
|
||||
|
||||
extern crate bytes;
|
||||
#[macro_use]
|
||||
extern crate futures;
|
||||
extern crate iovec;
|
||||
extern crate mio;
|
||||
extern crate slab;
|
||||
extern crate tokio_io;
|
||||
|
||||
#[macro_use]
|
||||
extern crate scoped_tls;
|
||||
@@ -108,3 +112,9 @@ mod heap;
|
||||
pub mod channel;
|
||||
pub mod net;
|
||||
pub mod reactor;
|
||||
|
||||
use std::io as sio;
|
||||
|
||||
fn would_block() -> sio::Error {
|
||||
sio::Error::new(sio::ErrorKind::WouldBlock, "would block")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user