1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#[cfg(unix)] pub mod unix; #[cfg(windows)] pub mod windows; #[cfg(not(any(unix, windows)))] mod stub; #[cfg(unix)] pub use unix::OsSocket; #[cfg(windows)] pub use windows::OsSocket; #[cfg(not(any(unix, windows)))] pub use stub::OsSocket;