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 | 625 | July 7, 2020 | |
| Conditional compilation issue | 9 | 1177 | January 19, 2020 | |
|
Build.rs, cfg!, cross compilation
|
2 | 556 | March 5, 2020 | |
| Cfg!() macro for features? | 11 | 9070 | January 12, 2023 | |
| Cfg! in proc_macro | 4 | 1339 | August 14, 2020 |