1macro_rules! cfg_fs {
2 ($($item:item)*) => {
3 $(
4 #[cfg(feature = "fs")]
5 #[cfg_attr(docsrs, doc(cfg(feature = "fs")))]
6 $item
7 )*
8 }
9}
10
11macro_rules! cfg_io_util {
12 ($($item:item)*) => {
13 $(
14 #[cfg(feature = "io-util")]
15 #[cfg_attr(docsrs, doc(cfg(feature = "io-util")))]
16 $item
17 )*
18 }
19}
20
21macro_rules! cfg_net {
22 ($($item:item)*) => {
23 $(
24 #[cfg(feature = "net")]
25 #[cfg_attr(docsrs, doc(cfg(feature = "net")))]
26 $item
27 )*
28 }
29}
30
31macro_rules! cfg_time {
32 ($($item:item)*) => {
33 $(
34 #[cfg(feature = "time")]
35 #[cfg_attr(docsrs, doc(cfg(feature = "time")))]
36 $item
37 )*
38 }
39}
40
41macro_rules! cfg_sync {
42 ($($item:item)*) => {
43 $(
44 #[cfg(feature = "sync")]
45 #[cfg_attr(docsrs, doc(cfg(feature = "sync")))]
46 $item
47 )*
48 }
49}
50
51macro_rules! cfg_signal {
52 ($($item:item)*) => {
53 $(
54 #[cfg(feature = "signal")]
55 #[cfg_attr(docsrs, doc(cfg(feature = "signal")))]
56 $item
57 )*
58 }
59}
60
61macro_rules! ready {
62 ($e:expr $(,)?) => {
63 match $e {
64 std::task::Poll::Ready(t) => t,
65 std::task::Poll::Pending => return std::task::Poll::Pending,
66 }
67 };
68}
69