1 2 3 4 5 6 7 8 9 10 11 12
cfg_if::cfg_if! { if #[cfg(target_vendor = "apple")] { mod apple; pub use self::apple::*; } else if #[cfg(windows)] { mod windows; pub use self::windows::*; } else { mod unsupported; pub use self::unsupported::*; } }