Skip to content

Commit

Permalink
io: move into tokio crate
Browse files Browse the repository at this point in the history
A step towards collapsing Tokio sub crates into a single `tokio`
crate (#1318).

The `io` implementation is now provided by the main `tokio` crate.
Functionality can be opted out of by using the various net related
feature flags.
  • Loading branch information
carllerche committed Oct 25, 2019
1 parent 227533d commit ef38170
Show file tree
Hide file tree
Showing 78 changed files with 183 additions and 372 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
members = [
"tokio",
"tokio-executor",
"tokio-io",
"tokio-macros",
"tokio-sync",
"tokio-test",
Expand Down
3 changes: 1 addition & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
tokio:
- fs
- io
- io-util
- net-driver
- process
- rt-full
Expand All @@ -49,8 +50,6 @@ jobs:
tokio-executor:
- current-thread
- thread-pool
tokio-io:
- util
tokio-sync:
- async-traits
tokio-macros: []
Expand Down
97 changes: 0 additions & 97 deletions tokio-io/CHANGELOG.md

This file was deleted.

39 changes: 0 additions & 39 deletions tokio-io/Cargo.toml

This file was deleted.

25 changes: 0 additions & 25 deletions tokio-io/LICENSE

This file was deleted.

13 changes: 0 additions & 13 deletions tokio-io/README.md

This file was deleted.

47 changes: 0 additions & 47 deletions tokio-io/src/lib.rs

This file was deleted.

2 changes: 1 addition & 1 deletion tokio-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ categories = ["asynchronous", "testing"]
[dependencies]
tokio = { version = "=0.2.0-alpha.6", path = "../tokio" }
tokio-executor = { version = "=0.2.0-alpha.6", path = "../tokio-executor" }
tokio-io = { version = "=0.2.0-alpha.6", path = "../tokio-io" }
tokio-sync = { version = "=0.2.0-alpha.6", path = "../tokio-sync" }

bytes = "0.4"
futures-core-preview = "=0.3.0-alpha.19"
pin-convert = "0.1.0"

Expand Down
5 changes: 3 additions & 2 deletions tokio-test/src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@
//! [`AsyncRead`]: tokio_io::AsyncRead
//! [`AsyncWrite`]: tokio_io::AsyncWrite

use tokio::io::{AsyncRead, AsyncWrite};
use tokio::sync::mpsc;
use tokio::timer::{clock, timer, Delay};
use tokio_io::{AsyncRead, AsyncWrite, Buf};
use tokio_sync::mpsc;

use bytes::Buf;
use futures_core::ready;
use std::collections::VecDeque;
use std::future::Future;
Expand Down
2 changes: 1 addition & 1 deletion tokio-tls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ travis-ci = { repository = "tokio-rs/tokio-tls" }

[dependencies]
native-tls = "0.2"
tokio-io = { version = "=0.2.0-alpha.6", path = "../tokio-io" }
tokio = { version = "=0.2.0-alpha.6", path = "../tokio", features = ["io-traits"] }

[dev-dependencies]
tokio = { version = "=0.2.0-alpha.6", path = "../tokio" }
Expand Down
3 changes: 2 additions & 1 deletion tokio-tls/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
//! built. Configuration of TLS parameters is still primarily done through the
//! `native-tls` crate.

use tokio::io::{AsyncRead, AsyncWrite};

use native_tls::{Error, HandshakeError, MidHandshakeTlsStream};
use std::fmt;
use std::future::Future;
Expand All @@ -36,7 +38,6 @@ use std::marker::Unpin;
use std::pin::Pin;
use std::ptr::null_mut;
use std::task::{Context, Poll};
use tokio_io::{AsyncRead, AsyncWrite};

#[derive(Debug)]
struct AllowStd<S> {
Expand Down
1 change: 0 additions & 1 deletion tokio-util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Additional utilities for working with Tokio.
categories = ["asynchronous"]

[dependencies]
tokio-io = { version = "=0.2.0-alpha.6", path = "../tokio-io" }
tokio = { version = "=0.2.0-alpha.6", path = "../tokio" }

bytes = "0.4.7"
Expand Down
2 changes: 1 addition & 1 deletion tokio-util/src/codec/decoder.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::codec::encoder::Encoder;
use crate::codec::Framed;

use tokio_io::{AsyncRead, AsyncWrite};
use tokio::io::{AsyncRead, AsyncWrite};

use bytes::BytesMut;
use std::io;
Expand Down
2 changes: 1 addition & 1 deletion tokio-util/src/codec/framed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::codec::encoder::Encoder;
use crate::codec::framed_read::{framed_read2, framed_read2_with_buffer, FramedRead2};
use crate::codec::framed_write::{framed_write2, framed_write2_with_buffer, FramedWrite2};

use tokio_io::{AsyncBufRead, AsyncRead, AsyncWrite};
use tokio::io::{AsyncBufRead, AsyncRead, AsyncWrite};

use bytes::BytesMut;
use futures_core::Stream;
Expand Down
2 changes: 1 addition & 1 deletion tokio-util/src/codec/framed_read.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::codec::framed::Fuse;
use crate::codec::Decoder;

use tokio_io::AsyncRead;
use tokio::io::AsyncRead;

use bytes::BytesMut;
use futures_core::Stream;
Expand Down
2 changes: 1 addition & 1 deletion tokio-util/src/codec/framed_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::codec::decoder::Decoder;
use crate::codec::encoder::Encoder;
use crate::codec::framed::Fuse;

use tokio_io::{AsyncBufRead, AsyncRead, AsyncWrite};
use tokio::io::{AsyncBufRead, AsyncRead, AsyncWrite};

use bytes::BytesMut;
use futures_core::{ready, Stream};
Expand Down
Loading

0 comments on commit ef38170

Please sign in to comment.