1#![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)]
12
13#[cfg(feature = "alloc")]
14extern crate alloc;
15#[cfg(feature = "std")]
16extern crate std;
17
18mod spawn;
19pub use crate::spawn::{LocalSpawn, Spawn, SpawnError};
20
21#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
22#[cfg(feature = "alloc")]
23mod arc_wake;
24#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
25#[cfg(feature = "alloc")]
26pub use crate::arc_wake::ArcWake;
27
28#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
29#[cfg(feature = "alloc")]
30mod waker;
31#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
32#[cfg(feature = "alloc")]
33pub use crate::waker::waker;
34
35#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
36#[cfg(feature = "alloc")]
37mod waker_ref;
38#[cfg_attr(target_os = "none", cfg(target_has_atomic = "ptr"))]
39#[cfg(feature = "alloc")]
40pub use crate::waker_ref::{waker_ref, WakerRef};
41
42mod future_obj;
43pub use crate::future_obj::{FutureObj, LocalFutureObj, UnsafeFutureObj};
44
45mod noop_waker;
46pub use crate::noop_waker::noop_waker;
47pub use crate::noop_waker::noop_waker_ref;
48
49#[doc(no_inline)]
50pub use core::task::{Context, Poll, RawWaker, RawWakerVTable, Waker};