1 2 3 4 5 6 7 8 9
cfg_if::cfg_if! { if #[cfg(target_os = "linux")] { mod linux; pub use linux::*; } else if #[cfg(target_os = "macos")] { mod macos; pub use macos::*; } }