summaryrefslogtreecommitdiffstats
path: root/tokio/src/lib.rs
diff options
context:
space:
mode:
authorIvan Petkov <ivanppetkov@gmail.com>2020-09-24 10:51:46 -0700
committerGitHub <noreply@github.com>2020-09-24 10:51:46 -0700
commita1d0681cd2e581b1f6767126858d2f3d5d8992f5 (patch)
tree6f7b9aa5e4bd32854683a42753a145132e2ac7cc /tokio/src/lib.rs
parent4dfbdbff7e260eb7f046a8dc91ec0c84ae7ab2e8 (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/lib.rs')
-rw-r--r--tokio/src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tokio/src/lib.rs b/tokio/src/lib.rs
index f057cedc..4fe82cf2 100644
--- a/tokio/src/lib.rs
+++ b/tokio/src/lib.rs
@@ -372,6 +372,13 @@ cfg_signal! {
pub mod signal;
}
+cfg_signal_internal! {
+ #[cfg(not(feature = "signal"))]
+ #[allow(dead_code)]
+ #[allow(unreachable_pub)]
+ pub(crate) mod signal;
+}
+
cfg_stream! {
pub mod stream;
}