# show this help
help:
just --list
# lint code
lint:
cargo clippy --all-targets --all-features --workspace -- -D warnings
# check formatting
fmt-check:
cargo fmt --all --check
# format code
fmt:
cargo fmt --all
# run all tests
test:
cargo test --all-features --workspace
# check docs
doc-check:
cargo doc --no-deps --document-private-items --all-features --workspace --examples
# build program
build profile="release":
cargo build --profile {{profile}}
# do a release
dryrun := "true"
_executeFlag := if dryrun == "false" {"--execute"} else { "" }
release level:
@cargo install cargo-release
cargo release {{level}} {{_executeFlag}}