async_executors/
lib.rs

1#![ cfg_attr( nightly, feature(doc_cfg) ) ]
2#![ doc = include_str!("../README.md") ]
3
4#![ doc   ( html_root_url = "https://docs.rs/async_executors" ) ]
5#![ deny  ( missing_docs                                      ) ]
6#![ forbid( unsafe_code                                       ) ]
7#![ allow ( clippy::suspicious_else_formatting                ) ]
8
9#![ warn
10(
11	anonymous_parameters          ,
12	missing_copy_implementations  ,
13	missing_debug_implementations ,
14	nonstandard_style             ,
15	rust_2018_idioms              ,
16	single_use_lifetimes          ,
17	trivial_casts                 ,
18	trivial_numeric_casts         ,
19	unreachable_pub               ,
20	unused_extern_crates          ,
21	unused_qualifications         ,
22	variant_size_differences      ,
23)]
24
25
26/// The executor implementations.
27//
28pub mod exec;
29
30/// The traits exposed by this crate.
31//
32pub mod iface;
33
34#[ cfg( any
35(
36	feature = "tokio_ct",
37	feature = "tokio_tp",
38	feature = "async_global",
39	feature = "async_std",
40	feature = "glommio",
41	feature = "bindgen"
42)) ]
43pub use exec::*;
44pub use iface::*;
45
46// Re-export for convenience.
47//
48#[ cfg( feature = "localpool"  ) ] pub use futures_executor::LocalPool;
49#[ cfg( feature = "localpool"  ) ] pub use futures_executor::LocalSpawner;
50#[ cfg( feature = "threadpool" ) ] pub use futures_executor::ThreadPool;
51
52
53