Use cargo-limit for all recipes (#928)

`cargo-limit` provides cargo command wrappers that only print warnings
if no errors are encounter, print the first warning last so it's easy to
see, and more.

This PR modifies the just recipe to use the `cargo-limit` versions of
commands where applicable.

Cargo limit can be installed with:

  cargo install cargo-limit
This commit is contained in:
Casey Rodarmor 2021-07-29 00:09:22 -07:00 committed by GitHub
parent 7efb82f4cb
commit 0662e4c042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ log := "warn"
export JUST_LOG := log export JUST_LOG := log
test: test:
cargo test cargo ltest
fuzz: fuzz:
cargo +nightly fuzz run fuzz-compiler cargo +nightly fuzz run fuzz-compiler
@ -23,19 +23,12 @@ fuzz:
run: run:
cargo run cargo run
@spam:
{ \
figlet test; \
cargo build --color always 2>&1; \
cargo test --color always -- --color always 2>&1; \
} | less
# only run tests matching PATTERN # only run tests matching PATTERN
filter PATTERN: filter PATTERN:
cargo test {{PATTERN}} cargo ltest {{PATTERN}}
build: build:
cargo build cargo lbuild
fmt: fmt:
cargo +nightly fmt --all cargo +nightly fmt --all
@ -65,7 +58,7 @@ check: actionlint fmt clippy test forbid
git diff --no-ext-diff --quiet --exit-code git diff --no-ext-diff --quiet --exit-code
grep '^\[{{ version }}\]' CHANGELOG.md grep '^\[{{ version }}\]' CHANGELOG.md
cargo +nightly generate-lockfile -Z minimal-versions cargo +nightly generate-lockfile -Z minimal-versions
cargo test cargo ltest
git checkout Cargo.lock git checkout Cargo.lock
publish-check: check man publish-check: check man
@ -101,10 +94,11 @@ install:
install-dev-deps: install-dev-deps:
rustup install nightly rustup install nightly
rustup update nightly rustup update nightly
rustup run nightly cargo install -f clippy rustup run nightly cargo install clippy
cargo install -f cargo-watch
cargo install -f cargo-check
cargo +nightly install cargo-fuzz cargo +nightly install cargo-fuzz
cargo install cargo-check
cargo install cargo-limit
cargo install cargo-watch
# install system development dependencies with homebrew # install system development dependencies with homebrew
install-dev-deps-homebrew: install-dev-deps-homebrew:
@ -116,7 +110,7 @@ actionlint:
# everyone's favorite animate paper clip # everyone's favorite animate paper clip
clippy: clippy:
cargo clippy --all --all-targets --all-features cargo lclippy --all --all-targets --all-features
forbid: forbid:
./bin/forbid ./bin/forbid