1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#[cfg(any(target_os = "macos", target_os = "linux"))]
mod linux_macos;
#[cfg(any(target_os = "macos", target_os = "linux"))]
pub use self::linux_macos::*;
#[cfg(any(target_os = "freebsd", target_os = "netbsd"))]
mod bsd;
#[cfg(any(target_os = "freebsd", target_os = "netbsd"))]
pub use self::bsd::*;
#[cfg(all(feature = "unsupported", not(any(target_os = "freebsd", target_os = "netbsd", target_os = "macos", target_os = "linux"))))]
mod unsupported;
#[cfg(all(feature = "unsupported", not(any(target_os = "freebsd", target_os = "netbsd", target_os = "macos", target_os = "linux"))))]
pub use self::unsupported::*;
pub const SUPPORTED_PLATFORM: bool = cfg!(any(target_os = "freebsd",
target_os = "netbsd",
target_os = "macos",
target_os = "linux"));