2023-07-04 08:14:18 +00:00
|
|
|
# Bump all deps, including incompatible version upgrades
|
|
|
|
bump:
|
|
|
|
just ensure_installed upgrade
|
|
|
|
cargo update
|
|
|
|
cargo upgrade --incompatible
|
|
|
|
cargo test --workspace
|
|
|
|
|
|
|
|
# Run the test suite with nexttest
|
|
|
|
nextest:
|
|
|
|
just ensure_installed nextest
|
|
|
|
cargo nextest run --workspace
|
|
|
|
|
2024-05-20 12:36:34 +00:00
|
|
|
# If you change anything in here, make sure to also adjust the lint CI job!
|
2024-04-01 14:49:36 +00:00
|
|
|
lint:
|
|
|
|
just ensure_installed sort
|
2024-05-20 12:36:34 +00:00
|
|
|
cargo fmt --all -- --check
|
2024-04-01 14:49:36 +00:00
|
|
|
cargo sort --workspace --check
|
2024-05-20 12:36:34 +00:00
|
|
|
cargo clippy --tests --workspace -- -D warnings
|
2024-04-01 14:49:36 +00:00
|
|
|
|
|
|
|
format:
|
|
|
|
just ensure_installed sort
|
|
|
|
cargo fmt
|
|
|
|
cargo sort --workspace
|
|
|
|
|
2023-07-04 08:14:18 +00:00
|
|
|
ensure_installed *args:
|
|
|
|
#!/bin/bash
|
|
|
|
cargo --list | grep -q {{ args }}
|
|
|
|
if [[ $? -ne 0 ]]; then
|
|
|
|
echo "error: cargo-{{ args }} is not installed"
|
|
|
|
exit 1
|
|
|
|
fi
|