Debian Codegraph @

third_party/rust/quinn-udp/build.rs

raw
1 use cfg_aliases::cfg_aliases;
2
3 fn main() {
4 // Setup cfg aliases
5 cfg_aliases! {
6 // Platforms
7 apple: {
8 any(
9 target_os = "macos",
10 target_os = "ios",
11 target_os = "tvos",
12 target_os = "visionos"
13 )
14 },
15 bsd: {
16 any(
17 target_os = "freebsd",
18 target_os = "openbsd",
19 target_os = "netbsd"
20 )
21 },
22 solarish: {
23 any(
24 target_os = "solaris",
25 target_os = "illumos"
26 )
27 },
28 // Convenience aliases
29 apple_fast: { all(apple, feature = "fast-apple-datapath") },
30 apple_slow: { all(apple, not(feature = "fast-apple-datapath")) },
31 wasm_browser: { all(target_family = "wasm", target_os = "unknown") },
32 }
33 }