@@ -40,21 +40,6 @@ build-lib:
4040check :
4141 cargo check --workspace --all-targets {{ features_flag}}
4242
43- # Verify that the current version of the crate is not the same as the one published on crates.io
44- check-if-published package = main_crate:
45- #!/usr/bin/env bash
46- set -euo pipefail
47- LOCAL_VERSION=" $({{ just_executable ()}} get-crate-field version {{ package}} )"
48- echo " Detected crate {{ package}} version: '$LOCAL_VERSION'"
49- PUBLISHED_VERSION=" $(cargo search --quiet {{ package}} | grep " ^{{ package}} =" | sed -E 's/.* = " (.*)" .*/\1 /')"
50- echo " Published crate version: '$PUBLISHED_VERSION'"
51- if [ " $LOCAL_VERSION" = " $PUBLISHED_VERSION" ]; then
52- echo " ERROR: The current crate version has already been published."
53- exit 1
54- else
55- echo " The current crate version has not yet been published."
56- fi
57-
5843# Quick compile - lib-only
5944check-lib :
6045 cargo check --workspace
@@ -116,6 +101,7 @@ env-info:
116101 rustup --version
117102 @ echo " RUSTFLAGS='$RUSTFLAGS'"
118103 @ echo " RUSTDOCFLAGS='$RUSTDOCFLAGS'"
104+ @ echo " RUST_BACKTRACE='$RUST_BACKTRACE'"
119105
120106# Reformat all code `cargo fmt`. If nightly is available, use it for better results
121107fmt :
@@ -140,6 +126,9 @@ get-msrv package=main_crate: (get-crate-field 'rust_version' package)
140126msrv : (cargo-install ' cargo-msrv' )
141127 cargo msrv find --write-msrv --ignore-lockfile
142128
129+ release * args = ' ': (cargo-install ' release-plz' )
130+ release-plz {{ args}}
131+
143132# Check semver compatibility with prior published version. Install it with `cargo install cargo-semver-checks`
144133semver * args : (cargo-install ' cargo-semver-checks' )
145134 cargo semver-checks {{ features_flag}} {{ args}}
0 commit comments