1 use cfg_aliases::cfg_aliases;
2
main()3 fn main() {
4 cfg_aliases! {
5 android: { target_os = "android" },
6 dragonfly: { target_os = "dragonfly" },
7 ios: { target_os = "ios" },
8 freebsd: { target_os = "freebsd" },
9 illumos: { target_os = "illumos" },
10 linux: { target_os = "linux" },
11 macos: { target_os = "macos" },
12 netbsd: { target_os = "netbsd" },
13 openbsd: { target_os = "openbsd" },
14 solaris: { target_os = "solaris" },
15 watchos: { target_os = "watchos" },
16 tvos: { target_os = "tvos" },
17
18 apple_targets: { any(ios, macos, watchos, tvos) },
19 bsd: { any(freebsd, dragonfly, netbsd, openbsd, apple_targets) },
20 linux_android: { any(android, linux) },
21 freebsdlike: { any(dragonfly, freebsd) },
22 netbsdlike: { any(netbsd, openbsd) },
23 solarish: { any(illumos, solaris) },
24 }
25 }
26