2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-31 09:45:36 +00:00
async-std/src/prelude.rs

48 lines
1.1 KiB
Rust
Raw Normal View History

2019-08-08 12:44:48 +00:00
//! The async prelude.
//!
//! The prelude re-exports most commonly used traits and macros from this crate.
//!
//! # Examples
//!
//! Import the prelude with:
//!
//! ```
//! # #[allow(unused_imports)]
//! use async_std::prelude::*;
//! ```
2019-08-08 12:44:48 +00:00
#[doc(no_inline)]
2019-08-12 10:43:44 +00:00
pub use crate::future::Future;
2019-08-08 12:44:48 +00:00
#[doc(no_inline)]
2019-08-12 10:43:44 +00:00
pub use crate::io::BufRead as _;
2019-08-08 12:44:48 +00:00
#[doc(no_inline)]
2019-08-12 10:43:44 +00:00
pub use crate::io::Read as _;
2019-08-08 12:44:48 +00:00
#[doc(no_inline)]
2019-08-12 10:43:44 +00:00
pub use crate::io::Seek as _;
2019-08-08 12:44:48 +00:00
#[doc(no_inline)]
2019-08-12 10:43:44 +00:00
pub use crate::io::Write as _;
2019-10-09 15:19:34 +00:00
#[doc(no_inline)]
2019-08-12 10:43:44 +00:00
pub use crate::stream::Stream;
2019-08-08 12:44:48 +00:00
#[doc(no_inline)]
2019-08-14 01:47:39 +00:00
pub use crate::task_local;
2019-09-21 08:39:56 +00:00
#[doc(hidden)]
pub use crate::future::future::FutureExt as _;
2019-09-21 08:39:56 +00:00
#[doc(hidden)]
pub use crate::io::buf_read::BufReadExt as _;
2019-09-21 08:39:56 +00:00
#[doc(hidden)]
pub use crate::io::read::ReadExt as _;
2019-09-21 08:39:56 +00:00
#[doc(hidden)]
pub use crate::io::seek::SeekExt as _;
2019-09-21 08:39:56 +00:00
#[doc(hidden)]
pub use crate::io::write::WriteExt as _;
2019-09-22 14:34:07 +00:00
#[doc(hidden)]
pub use crate::stream::stream::StreamExt as _;
cfg_unstable! {
#[doc(no_inline)]
pub use crate::stream::DoubleEndedStream;
#[doc(no_inline)]
pub use crate::stream::ExactSizeStream;
}