1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//! Fast, no_std synchronization primitives. //! //! ## Feature flags //! All features are on by default. //! //! - `os`: exposes operating system primitives which implement thread parking. //! - `sync`: exposes synchronization primitives backed by thread parking. //! - `futures`: exposes synchronization primitives backed by futures. #![no_std] #[cfg(feature = "sync")] pub mod sync; #[cfg(feature = "futures")] pub mod futures;