network_interface/target/
mod.rs

1#[allow(unused_imports)]
2#[cfg(any(target_os = "android", target_os = "linux"))]
3mod linux;
4
5#[allow(unused_imports)]
6#[cfg(any(target_os = "android", target_os = "linux"))]
7pub use linux::*;
8
9#[cfg(any(
10    target_os = "macos",
11    target_os = "ios",
12    target_os = "freebsd",
13    target_os = "openbsd",
14    target_os = "netbsd",
15    target_os = "dragonfly"
16))]
17mod unix;
18
19#[cfg(any(
20    target_os = "macos",
21    target_os = "ios",
22    target_os = "freebsd",
23    target_os = "openbsd",
24    target_os = "netbsd",
25    target_os = "dragonfly"
26))]
27pub use unix::*;
28
29#[allow(unused_imports)]
30#[cfg(target_os = "windows")]
31mod windows;
32
33#[allow(unused_imports)]
34#[cfg(target_os = "windows")]
35pub use self::windows::*;
36
37#[cfg(not(target_os = "windows"))]
38mod getifaddrs;
39
40#[cfg(not(target_os = "windows"))]
41pub use getifaddrs::*;