1 2 3 4 5 6 7 8 9 10 11 12
#[cfg(windows)] pub mod windows; #[cfg(unix)] pub mod unix; // Is this a good idea? Should I write a platform trait instead? #[cfg(windows)] pub use self::windows as current; #[cfg(unix)] pub use self::unix as current;