From 8715cd5547b6149691f34ab2c31890ccef41fa11 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Sat, 5 Jul 2025 12:04:15 +0000 Subject: [PATCH] chore: Use `cargo-msrv` to check the `msrv` instead of `rustup` Signed-off-by: Awiteb --- justfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/justfile b/justfile index f620d44..78c3fda 100644 --- a/justfile +++ b/justfile @@ -13,7 +13,6 @@ set script-interpreter := ["/usr/bin/env", "bash"] JUST_EXECUTABLE := "just -u -f " + justfile() header := "Available tasks:\n" # Get the MSRV from the Cargo.toml -msrv := `cat Cargo.toml | grep "rust-version" | sed 's/.*"\(.*\)".*/\1/'` tag_change_body := '''{% for group, commits in commits | group_by(attribute="group") %} {{ group | upper_first }} @@ -33,16 +32,16 @@ ci: && msrv _done_ci cargo build -q echo "πŸ” Checking code formatting..." cargo fmt -q -- --check - taplo fmt --check --config ./.taplo.toml + RUST_LOG=none taplo fmt --check --config ./.taplo.toml || (echo "❌Toml files is not properly formatted" && exit 1) echo "🧹 Running linter checks..." cargo clippy -q -- -D warnings echo "πŸ§ͺ Running tests..." - cargo test + cargo test -q # Check that the current MSRV is correct msrv: - echo "πŸ”§ Verifying MSRV ({{msrv}})..." - rustup -q run --install {{msrv}} cargo check -q + echo "πŸ”§ Verifying MSRV..." + cargo-msrv verify echo "βœ… MSRV verification passed" _done_ci: