mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-20 23:11:05 +00:00
Delete more macro test remnants
This commit is contained in:
@@ -20,10 +20,6 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: dtolnay/rust-toolchain@nightly
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
- run: cd test_suite && cargo test --features unstable
|
- run: cd test_suite && cargo test --features unstable
|
||||||
- uses: dtolnay/install@cargo-expand
|
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
- run: cd test_suite && cargo test --features expandtest --test expandtest -- --include-ignored
|
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
|
|
||||||
windows:
|
windows:
|
||||||
name: Test suite (windows)
|
name: Test suite (windows)
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ edition = "2018"
|
|||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
expandtest = []
|
|
||||||
unstable = ["serde/unstable"]
|
unstable = ["serde/unstable"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@@ -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");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user