|
@@ -200,6 +200,7 @@ fn has_feature(feature: &str) -> bool {
|
|
|
// creates a cfg alias if `has_feature` is true.
|
|
|
// `alias` must be a snake case string.
|
|
|
fn cfg_alias(alias: &str, has_feature: bool) {
|
|
|
+ println!("cargo:rustc-check-cfg=cfg({alias})");
|
|
|
if has_feature {
|
|
|
println!("cargo:rustc-cfg={alias}");
|
|
|
}
|