|
|
|
@ -41,6 +41,7 @@
|
|
|
|
|
//! features = ["unstable"]
|
|
|
|
|
//! ```
|
|
|
|
|
|
|
|
|
|
#![cfg(feature = "default")]
|
|
|
|
|
#![cfg_attr(feature = "docs", feature(doc_cfg))]
|
|
|
|
|
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
|
|
|
|
|
#![allow(clippy::mutex_atomic, clippy::module_inception)]
|
|
|
|
@ -49,33 +50,21 @@
|
|
|
|
|
#![doc(html_logo_url = "https://async.rs/images/logo--hero.svg")]
|
|
|
|
|
#![recursion_limit = "2048"]
|
|
|
|
|
|
|
|
|
|
/// Declares stable items.
|
|
|
|
|
#[doc(hidden)]
|
|
|
|
|
macro_rules! cfg_stable {
|
|
|
|
|
($($item:item)*) => {
|
|
|
|
|
$(
|
|
|
|
|
#[cfg(feature = "stable")]
|
|
|
|
|
$item
|
|
|
|
|
)*
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cfg_stable! {
|
|
|
|
|
#[macro_use]
|
|
|
|
|
mod utils;
|
|
|
|
|
#[macro_use]
|
|
|
|
|
mod utils;
|
|
|
|
|
|
|
|
|
|
pub mod fs;
|
|
|
|
|
pub mod future;
|
|
|
|
|
pub mod io;
|
|
|
|
|
pub mod net;
|
|
|
|
|
pub mod os;
|
|
|
|
|
pub mod path;
|
|
|
|
|
pub mod prelude;
|
|
|
|
|
pub mod stream;
|
|
|
|
|
pub mod sync;
|
|
|
|
|
pub mod task;
|
|
|
|
|
pub mod fs;
|
|
|
|
|
pub mod future;
|
|
|
|
|
pub mod io;
|
|
|
|
|
pub mod net;
|
|
|
|
|
pub mod os;
|
|
|
|
|
pub mod path;
|
|
|
|
|
pub mod prelude;
|
|
|
|
|
pub mod stream;
|
|
|
|
|
pub mod sync;
|
|
|
|
|
pub mod task;
|
|
|
|
|
|
|
|
|
|
cfg_unstable! {
|
|
|
|
|
cfg_unstable! {
|
|
|
|
|
pub mod pin;
|
|
|
|
|
pub mod process;
|
|
|
|
|
|
|
|
|
@ -88,7 +77,6 @@ cfg_stable! {
|
|
|
|
|
|
|
|
|
|
#[doc(inline)]
|
|
|
|
|
pub use std::{write, writeln};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mod macros;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
mod macros;
|
|
|
|
|