You can make a build script that emits should_have_x11 cfgs in the right situations: Build Scripts - The Cargo Book
sfackler
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| `cfg_aliases`: A New Crate For Creating #[cfg] Aliases | 1 | 677 | April 8, 2020 | |
| Conditional compilation issue | 8 | 1290 | October 21, 2019 | |
|
Build.rs, cfg!, cross compilation
|
1 | 591 | December 6, 2019 | |
| Cfg!() macro for features? | 10 | 9333 | February 14, 2017 | |
| Cfg! in proc_macro | 3 | 1393 | May 16, 2020 |