#!/usr/bin/env just --justfile
@_default:
just --list
# Quick compile
check:
RUSTFLAGS='-D warnings' cargo check
# Run all tests as expected by CI
ci-test: rust-info test-fmt clippy check test test-doc
# Clean all build artifacts
clean:
cargo clean
# Run cargo clippy
clippy:
cargo clippy --workspace --all-targets -- -D warnings
# Build and open code documentation
docs:
cargo doc --no-deps --open
# Run cargo fmt
fmt:
cargo +nightly fmt -- --config imports_granularity=Module,group_imports=StdExternalCrate
rust-info:
rustc --version
cargo --version
# Run all tests
test:
RUSTFLAGS='-D warnings' cargo test
# Test documentation
test-doc:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
# Test code formatting
test-fmt:
cargo fmt --all -- --check
update:
cargo +nightly -Z unstable-options update --breaking
cargo update