1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#![cfg_attr( feature = "docs", feature( doc_cfg, external_doc )) ]
#![cfg_attr( feature = "docs", doc(include = "../README.md") )]
#![ doc ( html_root_url = "https://docs.rs/async_executors" ) ]
#![ deny ( missing_docs ) ]
#![ allow( clippy::suspicious_else_formatting ) ]
#![ warn
(
anonymous_parameters ,
missing_copy_implementations ,
missing_debug_implementations ,
nonstandard_style ,
rust_2018_idioms ,
single_use_lifetimes ,
trivial_casts ,
trivial_numeric_casts ,
unreachable_pub ,
unused_extern_crates ,
unused_qualifications ,
variant_size_differences ,
)]
#[ cfg( feature = "tokio_ct" ) ] mod tokio_ct;
#[ cfg( feature = "tokio_ct" ) ] pub use tokio_ct::*;
#[ cfg( feature = "tokio_tp" ) ] mod tokio_tp;
#[ cfg( feature = "tokio_tp" ) ] pub use tokio_tp::*;
#[ cfg( feature = "async_std") ] mod async_std;
#[ cfg( feature = "async_std") ] pub use async_std::*;
#[ cfg( feature = "bindgen" ) ] mod bindgen;
#[ cfg( feature = "bindgen" ) ] pub use bindgen::*;
#[ cfg( feature = "spawn_handle" ) ] mod spawn_handle ;
#[ cfg( feature = "spawn_handle" ) ] mod spawn_handle_os ;
#[ cfg( feature = "spawn_handle" ) ] mod local_spawn_handle ;
#[ cfg( feature = "spawn_handle" ) ] mod local_spawn_handle_os ;
#[ cfg( feature = "spawn_handle" ) ] mod join_handle ;
#[ cfg( feature = "spawn_handle" ) ] mod remote_handle ;
#[ cfg( feature = "spawn_handle" ) ] pub use spawn_handle ::*;
#[ cfg( feature = "spawn_handle" ) ] pub use spawn_handle_os ::*;
#[ cfg( feature = "spawn_handle" ) ] pub use local_spawn_handle ::*;
#[ cfg( feature = "spawn_handle" ) ] pub use local_spawn_handle_os ::*;
#[ cfg( feature = "spawn_handle" ) ] pub use join_handle ::*;
mod import
{
#[ cfg(any( feature = "bindgen", feature = "tokio_ct", feature = "tokio_tp", feature = "async_std" )) ]
pub(crate) use
{
futures_task :: { FutureObj, Spawn, SpawnError as FutSpawnErr } ,
};
#[ cfg(any( feature = "tokio_ct", feature = "bindgen" )) ]
pub(crate) use
{
futures_task :: { LocalFutureObj, LocalSpawn } ,
};
#[ cfg(any( feature = "tokio_ct", feature = "tokio_tp" )) ]
pub(crate) use
{
std :: { convert::TryFrom, future::Future } ,
tokio::{ runtime::{ Builder, Runtime, Handle as TokioRtHandle } },
};
#[ cfg( feature = "spawn_handle" ) ]
pub(crate) use
{
std :: { task::{ Poll, Context }, pin::Pin } ,
};
#[ cfg( feature = "tracing" ) ]
pub(crate) use
{
tracing_futures :: { Instrument, WithDispatch, Instrumented } ,
};
}