set shell := ["/usr/bin/env", "bash", "-c"] 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/'` _default: @{{JUST_EXECUTABLE}} --list-heading "{{header}}" --list @test test_name='': cargo test {{test_name}} # Run the CI @ci: && msrv test cargo build --all-targets cargo fmt --all -- --check cargo clippy --all-targets -- -D warnings # Check that the current MSRV is correct @msrv: rustup toolchain install {{msrv}} echo "Checking MSRV ({{msrv}})" cargo +{{msrv}} check -q --workspace echo "MSRV is correct"