From 69be74ed9d87abe3f1c361e9893506bbbde8c879 Mon Sep 17 00:00:00 2001 From: haraldmaida Date: Sun, 18 Oct 2026 20:58:49 +0200 Subject: [PATCH] chore: add `format` and `check-format` recipes to `justfile` and include `check-format` in the `continus-integration` recipe --- justfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/justfile b/justfile index ae6b261..0babc00 100644 --- a/justfile +++ b/justfile @@ -11,6 +11,7 @@ alias c := check alias cc := code-coverage alias ci := continues-integration alias d := doc +alias fmt := format alias l := lint alias la := lint-all-features alias ld := lint-default @@ -39,6 +40,14 @@ build: check: cargo check --all-targets --all-features +# format the code using rustfmt +format *options: + cargo +nightly fmt --all {{ options }} + +# check all code is formatted +check-format: + just format --check + # linting code using Clippy lint: just lint-all-features @@ -105,6 +114,7 @@ clean: # generate docs (but don't open it) +# generate the api docs [env("RUSTDOCFLAGS", "--cfg docsrs")] build-docs *options: cargo +nightly doc --all-features --no-deps {{ options }} @@ -124,6 +134,7 @@ check-msrv: setup-msrv # performs continues integration (CI) like tasks on the local machine [env("RUSTFLAGS", "-D warnings")] continues-integration: + just check-format just check-msrv just lint just test