Skip to content

Commit 1441ea4

Browse files
committed
Perform cargo-semver-checks separately for cargo crate
1 parent 39ad260 commit 1441ea4

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

crates/xtask-bump-check/src/xtask.rs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,29 @@ fn bump_check(args: &clap::ArgMatches, gctx: &cargo::util::GlobalContext) -> Car
202202
if github {
203203
println!("::group::SemVer Checks against crates.io");
204204
}
205+
205206
let mut cmd = ProcessBuilder::new("cargo");
206207
cmd.arg("semver-checks")
207208
.arg("check-release")
208-
.arg("--workspace");
209+
.arg("--workspace")
210+
.args(&["--exclude", "cargo"]);
209211

210212
gctx.shell().status("Running", &cmd)?;
211213
cmd.exec()?;
214+
215+
// Cargo has mutually exclusive features for different HTTP backends, so
216+
// pass a specific `--features` instead of including this in the
217+
// `--all-features` performed by the previous command.
218+
let mut cmd = ProcessBuilder::new("cargo");
219+
cmd.arg("semver-checks")
220+
.arg("check-release")
221+
.args(&["--package", "cargo"])
222+
.arg("--default-features")
223+
.args(&["--features", "all-static"]);
224+
225+
gctx.shell().status("Running", &cmd)?;
226+
cmd.exec()?;
227+
212228
if github {
213229
println!("::endgroup::");
214230
}

0 commit comments

Comments
 (0)