refactor: add Justfile; fix some clippy lints

This commit is contained in:
Jef Roosens 2025-04-30 15:15:51 +02:00
parent abafd9a28c
commit 08e77034a7
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
4 changed files with 40 additions and 22 deletions

35
Justfile Normal file
View file

@ -0,0 +1,35 @@
[group('build')]
build pkg:
cargo build --package {{ pkg }}
alias b := build
[group('build')]
build-all:
cargo build --workspace
alias ba := build-all
[group('test')]
test pkg:
cargo test --package {{ pkg }}
alias t := test
[group('test')]
test-all:
cargo test --workspace
alias ta := test-all
[group('check')]
check pkg:
cargo fmt --check --package {{ pkg }}
cargo clippy --package {{ pkg }} -- \
--no-deps \
--deny 'clippy::all'
alias c := check
[group('check')]
check-all:
cargo fmt --check --all
cargo clippy --all -- \
--no-deps \
--deny 'clippy::all'
alias ca := check-all