1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
//! OS-specific extensions. //! //! These are not cross-platform and their usage should be `cfg`-wrapped. #[cfg(unix)] pub mod unix; cfg_if::cfg_if! { if #[cfg(target_os = "linux")] { pub mod linux; } else if #[cfg(target_os = "macos")] { pub mod macos; } else if #[cfg(target_os = "windows")] { pub mod windows; } }