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 | 672 | April 28, 2022 | |
Checking sorting of #[cfg(target_os =
|
3 | 622 | January 12, 2023 | |
Is it possible for rust adding a PreCompiler
|
6 | 169 | December 20, 2024 | |
Target.'cfg(target_os="android") or IOS doesn't work | 9 | 3780 | August 1, 2020 |