You can make a build script that emits should_have_x11 cfgs in the right situations: Build Scripts - The Cargo Book
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
`cfg_aliases`: A New Crate For Creating #[cfg] Aliases | 2 | 581 | July 7, 2020 | |
Compile-time checking that all variants of a cfg() macro are valid
|
4 | 671 | April 28, 2022 | |
Checking sorting of #[cfg(target_os =
|
3 | 621 | January 12, 2023 | |
Target.'cfg(target_os="android") or IOS doesn't work | 9 | 3726 | August 1, 2020 | |
A crate to parametrize compile-time conditionals? | 6 | 482 | August 1, 2022 |