summaryrefslogtreecommitdiffstats
path: root/tokio/src/macros
diff options
context:
space:
mode:
authorIvan Petkov <ivanppetkov@gmail.com>2020-09-24 14:36:42 -0700
committerGitHub <noreply@github.com>2020-09-24 21:36:42 +0000
commit56acde069fe7fc57259e72de612f0c91c1320972 (patch)
treea06d5cad65375336dc93441a6f207e3de93fcefe /tokio/src/macros
parentffa5bdb22db066b531e45b42d0cb236c3916eee2 (diff)
chore: remove internal io-driver cargo feature (#2881)
Diffstat (limited to 'tokio/src/macros')
-rw-r--r--tokio/src/macros/cfg.rs47
1 files changed, 40 insertions, 7 deletions
diff --git a/tokio/src/macros/cfg.rs b/tokio/src/macros/cfg.rs
index 447d81ef..f245b09e 100644
--- a/tokio/src/macros/cfg.rs
+++ b/tokio/src/macros/cfg.rs
@@ -3,7 +3,14 @@
macro_rules! cfg_resource_drivers {
($($item:item)*) => {
$(
- #[cfg(any(feature = "io-driver", feature = "time"))]
+ #[cfg(any(
+ feature = "process",
+ all(unix, feature = "signal"),
+ all(not(loom), feature = "tcp"),
+ feature = "time",
+ all(not(loom), feature = "udp"),
+ all(not(loom), feature = "uds"),
+ ))]
$item
)*
}
@@ -89,9 +96,13 @@ macro_rules! cfg_atomic_waker_impl {
($($item:item)*) => {
$(
#[cfg(any(
- feature = "io-driver",
+ feature = "process",
+ all(feature = "rt-core", feature = "rt-util"),
+ feature = "signal",
+ feature = "tcp",
feature = "time",
- all(feature = "rt-core", feature = "rt-util")
+ feature = "udp",
+ feature = "uds",
))]
#[cfg(not(loom))]
$item
@@ -128,7 +139,20 @@ macro_rules! cfg_io_blocking {
macro_rules! cfg_io_driver {
($($item:item)*) => {
$(
- #[cfg(feature = "io-driver")]
+ #[cfg(any(
+ feature = "process",
+ all(unix, feature = "signal"),
+ feature = "tcp",
+ feature = "udp",
+ feature = "uds",
+ ))]
+ #[cfg_attr(docsrs, doc(cfg(any(
+ feature = "process",
+ all(unix, feature = "signal"),
+ feature = "tcp",
+ feature = "udp",
+ feature = "uds",
+ ))))]
$item
)*
}
@@ -137,7 +161,13 @@ macro_rules! cfg_io_driver {
macro_rules! cfg_not_io_driver {
($($item:item)*) => {
$(
- #[cfg(not(feature = "io-driver"))]
+ #[cfg(not(any(
+ feature = "process",
+ all(unix, feature = "signal"),
+ feature = "tcp",
+ feature = "udp",
+ feature = "uds",
+ )))]
$item
)*
}
@@ -407,13 +437,16 @@ macro_rules! cfg_coop {
feature = "blocking",
feature = "dns",
feature = "fs",
- feature = "io-driver",
feature = "io-std",
feature = "process",
feature = "rt-core",
+ feature = "signal",
feature = "sync",
feature = "stream",
- feature = "time"
+ feature = "tcp",
+ feature = "time",
+ feature = "udp",
+ feature = "uds",
))]
$item
)*