#!/usr/bin/env just --justfile
# https://github.com/casey/just
export RUST_BACKTRACE := "1"
export RUST_LOG := "info"
# List all of the available commands.
default:
just --list
# Run the CI checks
check:
cargo check --all-targets --all-features
cargo clippy --all-targets --all-features -- -D warnings
cargo fmt -- --check
cargo shear # requires: cargo binstall cargo-shear
# Run any CI tests
test:
cargo test --all-targets --all-features -- --include-ignored
# Automatically fix some issues.
fix:
cargo fix --allow-staged --all-targets --all-features
cargo clippy --fix --allow-staged --all-targets --all-features
cargo fmt --all
cargo shear --fix
# Upgrade any tooling
upgrade:
rustup upgrade
# Install cargo-upgrades if needed.
cargo install cargo-upgrades cargo-edit
cargo upgrade