#!/usr/bin/env -S just --justfile
alias b := build
alias c := clean
alias d := doc
alias l := lint
alias t := test
build:
cargo build
clean:
cargo clean
rm -rf tmp parsers parsers.toml
clippy:
cargo clippy --all --all-targets -- --deny warnings
clippy-fix *args:
cargo clippy --fix {{args}}
clippy-fix-now:
@just clippy-fix --allow-dirty --allow-staged
doc:
cargo doc --no-deps --open
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all -- --check
lint: clippy fmt-check typos
setup:
cargo install git-cliff cargo-nextest typos-cli
# cmd::build::build_implicit_pinned_and_unpinned is flaky.
test *args="--retries 2":
cargo nextest run {{args}}
typos:
typos --sort
typos-fix:
typos --write-changes