alias a := audit
alias b := build
alias c := check
alias cs := check-sigs
alias d := doc
alias db := delete-bins
alias do := doc-open
alias f := fmt
alias l := lock
alias t := test
alias z := zizmor
alias p := pre-push
_default:
@echo "> halfin"
@echo "> A regtest runner for \`bitcoind\` and \`utreexod\`\n"
@just --list
[doc: "Run `cargo audit`"]
audit:
cargo audit
[doc: "Build `halfin`"]
build:
cargo build
[doc: "Check code formatting, compilation, and linting"]
check:
cargo rbmt fmt --check
cargo rbmt lint
cargo rbmt docs
[doc: "Checks whether all commits in this branch are signed"]
check-sigs:
bash contrib/check-signatures.sh
[doc: "Delete binaries under `target/bin/`"]
delete-bins:
rm -rf target/bin
[doc: "Generate documentation"]
doc:
cargo rbmt docs
cargo doc --no-deps
[doc: "Generate and open documentation"]
doc-open:
cargo rbmt docs
cargo doc --no-deps --open
[doc: "Format code"]
fmt:
cargo rbmt fmt
[doc: "Regenerate Cargo-recent.lock and Cargo-minimal.lock"]
lock:
cargo rbmt lock
[doc: "Run tests across all toolchains and lockfiles"]
test:
cargo rbmt test
[doc: "Run Zizmor"]
zizmor:
uvx zizmor .
[doc: "Run pre-push checks"]
pre-push:
@just check
@just doc
@just test
@just zizmor
@just audit
@just check-sigs