1 | //! Core traits and types for asynchronous operations in Rust. |
2 | |
3 | #![no_std ] |
4 | #![doc (test( |
5 | no_crate_inject, |
6 | attr( |
7 | deny(warnings, rust_2018_idioms, single_use_lifetimes), |
8 | allow(dead_code, unused_assignments, unused_variables) |
9 | ) |
10 | ))] |
11 | #![warn (missing_docs, /* unsafe_op_in_unsafe_fn */)] // unsafe_op_in_unsafe_fn requires Rust 1.52 |
12 | |
13 | #[cfg (feature = "alloc" )] |
14 | extern crate alloc; |
15 | #[cfg (feature = "std" )] |
16 | extern crate std; |
17 | |
18 | pub mod future; |
19 | #[doc (no_inline)] |
20 | pub use self::future::{FusedFuture, Future, TryFuture}; |
21 | |
22 | pub mod stream; |
23 | #[doc (no_inline)] |
24 | pub use self::stream::{FusedStream, Stream, TryStream}; |
25 | |
26 | #[macro_use ] |
27 | pub mod task; |
28 | |