# List available commands
default:
just --list
# Auto format code
fmt:
cargo fmt
[private]
ci-lint-rustfmt:
cargo fmt --check
# Lint code
lint:
cargo clippy
[private]
ci-lint-clippy:
RUSTFLAGS="-Dwarnings" just lint
# Lint and auto format
l: fmt lint
alias b := build
# Build crate
build:
cargo build
[private]
ci-build:
RUSTFLAGS="-Dwarnings" just build
alias t := test
# Run tests
test:
cargo test
[private]
ci-test:
RUSTFLAGS="-Dwarnings" just test
# Cleanup rust build directory
clean:
rm -rf target