fn main() {
let mutually_exclusives_count = [cfg!(feature = "non-fips"), cfg!(feature = "fips")]
.iter()
.filter(|x| **x)
.count();
if mutually_exclusives_count > 1 {
eprint!("fips and non-fips are mutually exclusive crate features.");
std::process::exit(1);
}
let at_least_one_count = [cfg!(feature = "aws-lc-sys"), cfg!(feature = "fips")]
.iter()
.filter(|x| **x)
.count();
if at_least_one_count < 1 {
eprint!(
"one of the following features must be specified: \
aws-lc-sys, non-fips, or fips."
);
std::process::exit(1);
}
}