From 6b3fdd1de96145ab5fe9aba4d9e027624100d6fe Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 1 May 2024 10:02:53 +1000 Subject: [PATCH] Add a justfile `just` makes invocations of various tools more discoverable and gives a quick way to run them. --- justfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 00000000..68e181d5 --- /dev/null +++ b/justfile @@ -0,0 +1,26 @@ +default: + @just --list + +# Cargo build everything. +build: + cargo build --workspace --all-targets + +# Cargo check everything. +check: + cargo check --workspace --all-targets + +# Lint everything. +lint: + cargo clippy --workspace --all-targets + +# Run the formatter. +fmt: + cargo fmt --all + +# Check the formatting. +format: + cargo fmt --all --check + +# Test the workspace. +test: + cargo test --workspace --all-targets