aboutsummaryrefslogtreecommitdiff
path: root/src/macros/cfg.rs
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-09-30 08:55:02 -0700
committerJoel Galenson <jgalenson@google.com>2021-09-30 08:55:40 -0700
commit5fe87985ba723ee4d9532495587d7114e4b6e143 (patch)
tree71a18fec0599d209bd7c1b95140dc75566fa3788 /src/macros/cfg.rs
parentd61267ffdfea9ed9be38e805f8e3ff78e384005f (diff)
downloadtokio-5fe87985ba723ee4d9532495587d7114e4b6e143.tar.gz
Upgrade rust/crates/tokio to 1.12.0
Test: make Change-Id: I4b0bd405c0b615f886e5a6606e0bf7c0ac7c6699
Diffstat (limited to 'src/macros/cfg.rs')
-rw-r--r--src/macros/cfg.rs33
1 files changed, 32 insertions, 1 deletions
diff --git a/src/macros/cfg.rs b/src/macros/cfg.rs
index 7c87522..193bcd7 100644
--- a/src/macros/cfg.rs
+++ b/src/macros/cfg.rs
@@ -45,6 +45,18 @@ macro_rules! cfg_atomic_waker_impl {
}
}
+macro_rules! cfg_aio {
+ ($($item:item)*) => {
+ $(
+ #[cfg(all(any(docsrs, target_os = "freebsd"), feature = "net"))]
+ #[cfg_attr(docsrs,
+ doc(cfg(all(target_os = "freebsd", feature = "net")))
+ )]
+ $item
+ )*
+ }
+}
+
macro_rules! cfg_fs {
($($item:item)*) => {
$(
@@ -162,6 +174,25 @@ macro_rules! cfg_macros {
}
}
+macro_rules! cfg_stats {
+ ($($item:item)*) => {
+ $(
+ #[cfg(all(tokio_unstable, feature = "stats"))]
+ #[cfg_attr(docsrs, doc(cfg(feature = "stats")))]
+ $item
+ )*
+ }
+}
+
+macro_rules! cfg_not_stats {
+ ($($item:item)*) => {
+ $(
+ #[cfg(not(all(tokio_unstable, feature = "stats")))]
+ $item
+ )*
+ }
+}
+
macro_rules! cfg_net {
($($item:item)*) => {
$(
@@ -176,7 +207,7 @@ macro_rules! cfg_net_unix {
($($item:item)*) => {
$(
#[cfg(all(unix, feature = "net"))]
- #[cfg_attr(docsrs, doc(cfg(feature = "net")))]
+ #[cfg_attr(docsrs, doc(cfg(all(unix, feature = "net"))))]
$item
)*
}