1#![no_std]
4#![deny(missing_docs)]
5#![doc(html_root_url = "https://docs.rs/futures-executor/0.2.2")]
6
7#[cfg(feature = "std")]
8#[macro_use]
9extern crate std;
10
11macro_rules! if_std {
12 ($($i:item)*) => ($(
13 #[cfg(feature = "std")]
14 $i
15 )*)
16}
17
18if_std! {
19 #[macro_use]
20 extern crate lazy_static;
21
22 extern crate futures_core;
23 extern crate futures_util;
24 extern crate futures_channel;
25 extern crate num_cpus;
26
27 mod thread;
28
29 mod local_pool;
30 pub use local_pool::{block_on, block_on_stream, BlockingStream, LocalPool, LocalExecutor};
31
32 mod unpark_mutex;
33 mod thread_pool;
34 pub use thread_pool::{ThreadPool, ThreadPoolBuilder};
35
36 mod enter;
37 pub use enter::{enter, Enter, EnterError};
38
39 mod spawn;
40 pub use spawn::{spawn, Spawn, spawn_with_handle, SpawnWithHandle, JoinHandle};
41}