Delete more macro test remnants

This commit is contained in:
David Tolnay
2023-01-14 12:15:20 -08:00
parent a649190a4d
commit 30c4aa2cf4
3 changed files with 0 additions and 32 deletions
-1
View File
@@ -7,7 +7,6 @@ edition = "2018"
publish = false
[features]
expandtest = []
unstable = ["serde/unstable"]
[dependencies]
-27
View File
@@ -1,27 +0,0 @@
use std::process::{Command, ExitStatus, Stdio};
fn has_cargo_expand() -> bool {
let cargo_expand = if cfg!(windows) {
"cargo-expand.exe"
} else {
"cargo-expand"
};
Command::new(cargo_expand)
.arg("--version")
.stdin(Stdio::null())
.stdout(Stdio::null())
.stderr(Stdio::null())
.status()
.as_ref()
.map(ExitStatus::success)
.unwrap_or(false)
}
fn main() {
println!("cargo:rerun-if-changed=build.rs");
if cfg!(feature = "expandtest") && has_cargo_expand() {
println!("cargo:rustc-cfg=expandtest");
}
}