1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#[cfg(target_os = "linux")] mod linux; #[cfg(target_os = "linux")] use linux as imp; #[cfg(windows)] #[path = "windows/mod.rs"] mod imp; #[cfg(target_os = "macos")] #[path = "macos/mod.rs"] mod imp; #[cfg(target_os = "android")] #[path = "android.rs"] mod imp; pub use imp::*;