chore: organize justfiles

This commit is contained in:
Jef Roosens 2025-05-17 20:10:23 +02:00
parent 6a8725489e
commit e8a92d7e07
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
4 changed files with 50 additions and 27 deletions

View file

@ -1,35 +1,25 @@
[group('build')]
build pkg:
cargo build --package {{ pkg }}
build:
cargo build --frozen --workspace
alias b := build
[group('build')]
build-all:
cargo build --workspace
alias ba := build-all
[group('test')]
test pkg:
cargo test --package {{ pkg }}
test:
cargo test --frozen --workspace
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 }} -- \
check:
cargo fmt --check --all
cargo clippy \
--frozen \
--all -- \
--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
fetch:
cargo fetch --locked
clean:
cargo clean
doc:
cargo doc --workspace --frozen