Hi, GitHub sent me here when I tried to create a feature request, if this is the wrong place to post this in I apologize
I am at the moment working on a program that has a features for multiple Linux distro's example.:
arch, manjaro, garuda, debian
To compile the program it always needs one feature enabled, but now I wanted to handle a case in which someone tries to compile it with more features but I can't seem to create a cfg which will allow me to basically do "if more than one -> allow compilation", I wanted to make a custom compile error if someone provides more of them so it's more clear, because when I don't do something like this the compiler just returns an error about duplicate struct and such which is not best for a just maintainer of the package and not a developer.
I think having some keyword like "multiple" or something like that to be able to do this would be useful.
#[cfg(multiple(feature = "manjaro", feature = "arch", feature = "garuda", feature = "debian"))] compile_error!("You can't compile this program to support multiple distros at the same time! It must be compiled separately for each one!");