#!/usr/bin/env just --justfile # Setup the development environment setup-dev: @echo Installing nightly \`rustfmt\` @rustup toolchain install nightly --component rustfmt @echo Nightly \`rustfmt\` successfully installed! @echo Installing \`pre-commit\` @pip install pre-commit @pre-commit install @echo \`pre-commit\` hooks successfully installed! @echo Installing \`codespell\` @pip install codespell @echo \`codespell\` successfully installed! @echo Development environment installed successfully! # Run checks check: spellcheck fmt clippy test @echo Checks were successful! # Remove generated artifacts clean: @cargo clean @echo Done! # Build the project build: @cargo build @echo Project successfully built! # Run the tests test +ARGS="": @cargo test --all-features --workspace {{ARGS}} # Lint the codebase clippy +ARGS="": @cargo clippy --all-targets --all-features --workspace -- --deny warnings --deny clippy::pedantic {{ARGS}} @echo Lint successful! # Format the codebase fmt +ARGS="": @cargo +nightly fmt --all -- {{ARGS}} @echo Codebase formatted successfully! # Spellcheck the codebase spellcheck +ARGS="--skip target*": @codespell --write-changes --builtin clear,rare,informal,code -I .codespellignore {{ARGS}} @echo Spellings look good!