diff options
author | Ivan Petkov <ivanppetkov@gmail.com> | 2020-09-24 10:51:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 10:51:46 -0700 |
commit | a1d0681cd2e581b1f6767126858d2f3d5d8992f5 (patch) | |
tree | 6f7b9aa5e4bd32854683a42753a145132e2ac7cc /tokio/src/macros | |
parent | 4dfbdbff7e260eb7f046a8dc91ec0c84ae7ab2e8 (diff) |
process: do not publicly turn on `signal` when enabled (#2871)
This change will still internally compile any `signal` resources
required when `process` is enabled on unix systems, but it will not
publicly turn on the cargo feature
Diffstat (limited to 'tokio/src/macros')
-rw-r--r-- | tokio/src/macros/cfg.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tokio/src/macros/cfg.rs b/tokio/src/macros/cfg.rs index 1336c63d..aa8dd675 100644 --- a/tokio/src/macros/cfg.rs +++ b/tokio/src/macros/cfg.rs @@ -223,6 +223,25 @@ macro_rules! cfg_signal { } } +macro_rules! cfg_signal_internal { + ($($item:item)*) => { + $( + #[cfg(any(feature = "signal", all(unix, feature = "process")))] + #[cfg(not(loom))] + $item + )* + } +} + +macro_rules! cfg_not_signal_internal { + ($($item:item)*) => { + $( + #[cfg(any(loom, not(unix), not(any(feature = "signal", all(unix, feature = "process")))))] + $item + )* + } +} + macro_rules! cfg_stream { ($($item:item)*) => { $( |