summaryrefslogtreecommitdiffstats
path: root/tokio/src/util/mod.rs
blob: c2f572f1bedfe0e18f761edc3f9cb377999d44aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cfg_io_driver! {
    pub(crate) mod bit;
    pub(crate) mod slab;
}

#[cfg(any(feature = "sync", feature = "rt-core"))]
pub(crate) mod linked_list;

#[cfg(any(feature = "rt-threaded", feature = "macros", feature = "stream"))]
mod rand;

cfg_rt_core! {
    mod wake;
    pub(crate) use wake::{waker_ref, Wake};
}

cfg_rt_threaded! {
    pub(crate) use rand::FastRand;

    mod try_lock;
    pub(crate) use try_lock::TryLock;
}

#[cfg(any(feature = "macros", feature = "stream"))]
#[cfg_attr(not(feature = "macros"), allow(unreachable_pub))]
pub use rand::thread_rng_n;