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

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

cfg_rt_threaded! {
    mod pad;
    pub(crate) use pad::CachePadded;

    pub(crate) use rand::FastRand;

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

cfg_macros! {
    pub use rand::thread_rng_n;
}