1#[cfg_attr(
2 all(feature = "runtime-tokio", not(feature = "runtime-async-std")),
3 path = "tokio.rs"
4)]
5#[cfg_attr(
6 all(feature = "runtime-async-std", not(feature = "runtime-tokio")),
7 path = "async_std.rs"
8)]
9#[cfg_attr(
10 not(any(feature = "runtime-tokio", feature = "runtime-async-std",)),
11 path = "empty.rs"
12)]
13mod runtime_impl;
14
15#[macro_export]
16#[doc(hidden)]
17macro_rules! cfg_runtime {
18 ($($item:item)*) => {
19 $(
20 #[cfg(any(feature="runtime-tokio", feature="runtime-async-std"))]
21 #[cfg_attr(docsrs, doc(cfg(any(feature = "runtime-tokio", feature="runtime-async-std"))))]
22 $item
23 )*
24 }
25}
26
27cfg_runtime! {
28 pub use runtime_impl::JoinHandle;
29 pub(crate) use runtime_impl::*;
30}