Skip to content

Commit 87a8780

Browse files
taiki-ecramertj
authored andcommitted
Re-export io traits to prelude and top-level
1 parent 13a83fe commit 87a8780

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

futures-util/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ pub mod compat;
104104
#[cfg(feature = "std")]
105105
pub mod io;
106106
#[cfg(feature = "std")]
107-
#[doc(hidden)] pub use crate::io::{AsyncReadExt, AsyncWriteExt, AsyncBufReadExt};
107+
#[doc(hidden)] pub use crate::io::{AsyncReadExt, AsyncWriteExt, AsyncSeekExt, AsyncBufReadExt};
108108

109109
cfg_target_has_atomic! {
110110
#[cfg(feature = "alloc")]

futures/src/lib.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ compile_error!("The `never-type` feature requires the `nightly` feature as an ex
5454
#[doc(hidden)] pub use futures_sink::Sink;
5555
#[doc(hidden)] pub use futures_util::sink::SinkExt;
5656

57+
#[cfg(feature = "std")]
58+
#[doc(hidden)] pub use futures_io::{AsyncRead, AsyncWrite, AsyncSeek, AsyncBufRead};
59+
#[cfg(feature = "std")]
60+
#[doc(hidden)] pub use futures_util::{AsyncReadExt, AsyncWriteExt, AsyncSeekExt, AsyncBufReadExt};
61+
5762
#[doc(hidden)] pub use futures_core::task::Poll;
5863

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

307312
#[cfg(feature = "std")]
308-
pub use crate::io::{ AsyncRead, AsyncWrite, AsyncReadExt, AsyncWriteExt };
313+
pub use crate::io::{
314+
AsyncRead, AsyncWrite, AsyncSeek, AsyncBufRead,
315+
AsyncReadExt, AsyncWriteExt, AsyncSeekExt, AsyncBufReadExt,
316+
};
309317
}
310318

311319
pub mod sink {

0 commit comments

Comments
 (0)