summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tokio/src/sync/mod.rs')
-rw-r--r--tokio/src/sync/mod.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/tokio/src/sync/mod.rs b/tokio/src/sync/mod.rs
index 2954eb85..0db703bb 100644
--- a/tokio/src/sync/mod.rs
+++ b/tokio/src/sync/mod.rs
@@ -40,9 +40,11 @@ cfg_not_sync! {
pub(crate) use task::AtomicWaker;
}
- cfg_rt_core! {
- pub(crate) mod oneshot;
- }
+ #[cfg(any(
+ feature = "rt-core",
+ feature = "process",
+ feature = "signal"))]
+ pub(crate) mod oneshot;
cfg_signal! {
pub(crate) mod mpsc;