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 | 592 | July 7, 2020 | |
Compile-time checking that all variants of a cfg() macro are valid
|
4 | 679 | April 28, 2022 | |
Checking sorting of #[cfg(target_os =
|
3 | 623 | January 12, 2023 | |
Is it possible for rust adding a PreCompiler
|
7 | 207 | March 20, 2025 | |
Target.'cfg(target_os="android") or IOS doesn't work | 9 | 4006 | August 1, 2020 |