Skip to content

Commit

Permalink
Re-export io traits to prelude and top-level
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e authored and cramertj committed May 2, 2019
1 parent 13a83fe commit 87a8780
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion futures-util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pub mod compat;
#[cfg(feature = "std")]
pub mod io;
#[cfg(feature = "std")]
#[doc(hidden)] pub use crate::io::{AsyncReadExt, AsyncWriteExt, AsyncBufReadExt};
#[doc(hidden)] pub use crate::io::{AsyncReadExt, AsyncWriteExt, AsyncSeekExt, AsyncBufReadExt};

cfg_target_has_atomic! {
#[cfg(feature = "alloc")]
Expand Down
10 changes: 9 additions & 1 deletion futures/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ compile_error!("The `never-type` feature requires the `nightly` feature as an ex
#[doc(hidden)] pub use futures_sink::Sink;
#[doc(hidden)] pub use futures_util::sink::SinkExt;

#[cfg(feature = "std")]
#[doc(hidden)] pub use futures_io::{AsyncRead, AsyncWrite, AsyncSeek, AsyncBufRead};
#[cfg(feature = "std")]
#[doc(hidden)] pub use futures_util::{AsyncReadExt, AsyncWriteExt, AsyncSeekExt, AsyncBufReadExt};

#[doc(hidden)] pub use futures_core::task::Poll;

// Macro reexports
Expand Down Expand Up @@ -305,7 +310,10 @@ pub mod prelude {
pub use crate::sink::{self, Sink, SinkExt};

#[cfg(feature = "std")]
pub use crate::io::{ AsyncRead, AsyncWrite, AsyncReadExt, AsyncWriteExt };
pub use crate::io::{
AsyncRead, AsyncWrite, AsyncSeek, AsyncBufRead,
AsyncReadExt, AsyncWriteExt, AsyncSeekExt, AsyncBufReadExt,
};
}

pub mod sink {
Expand Down

0 comments on commit 87a8780

Please sign in to comment.