1 2 3 4 5 6 7 8 9 10 11
#[cfg(target_os = "linux")] pub mod linux; #[cfg(target_os = "linux")] pub use linux::*; #[cfg(target_os = "macos")] pub mod mac; #[cfg(target_os = "macos")] pub use mac::*;