Skip to content

Commit

Permalink
Remove all verify-dependency-bounds associated targets
Browse files Browse the repository at this point in the history
Add ability to run build targets using cargo-minimal-versions

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Feb 27, 2025
1 parent 2c1ca05 commit 9c70a9d
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ else
CLIPPY_OPTS = --fix
endif

ifeq ($(origin MINIMAL), undefined)
BUILD = build
else
BUILD = minimal-versions build --direct
endif

IGNORE_ARGS ?=

${HOME}/.cargo/bin/cargo-audit:
Expand All @@ -26,10 +32,10 @@ check-typos:
typos

build:
cargo build
cargo ${BUILD}

build-examples:
cargo build --examples
cargo ${BUILD} --examples

test-compare-fedora-versions:
echo "Testing that COMPARE_FEDORA_VERSIONS environment variable is set to a valid path"
Expand All @@ -38,16 +44,6 @@ test-compare-fedora-versions:
check-fedora-versions: test-compare-fedora-versions
${COMPARE_FEDORA_VERSIONS} ${MANIFEST_PATH_ARGS} ${FEDORA_RELEASE_ARGS} ${IGNORE_ARGS}

SET_LOWER_BOUNDS ?=
test-set-lower-bounds:
echo "Testing that SET_LOWER_BOUNDS environment variable is set to a valid path"
test -e "${SET_LOWER_BOUNDS}"

verify-dependency-bounds: test-set-lower-bounds
cargo build ${MANIFEST_PATH_ARGS} --all-features
${SET_LOWER_BOUNDS} ${MANIFEST_PATH_ARGS}
cargo build ${MANIFEST_PATH_ARGS} --all-features

clippy:
(cd libcryptsetup-rs-sys && cargo clippy --all-features ${CARGO_OPTS})
cargo clippy --all-features ${CARGO_OPTS}
Expand Down Expand Up @@ -99,7 +95,4 @@ yamllint:
test-compare-fedora-versions
test-loopback
test-loopback-mutex
test-set-lower-bounds
verify-dependency-bounds
verify-dependency-bounds-sys
yamllint

0 comments on commit 9c70a9d

Please sign in to comment.