default:
@just --list
# Run pre-commit hooks on all files, including autoformatting
pre-commit-all:
pre-commit run --all-files
# Run 'cargo run' on the project
run *ARGS:
cargo run {{ARGS}}
# Run 'bacon' to run the project (auto-recompiles)
watch *ARGS:
bacon --job run -- -- {{ ARGS }}
# Run all tests
test *ARGS:
cargo test {{ARGS}}
# Run tests with bacon (auto-recompiles and re-runs tests)
test-watch *ARGS:
bacon --job test -- {{ARGS}}
# Run specific test file
test-file FILE *ARGS:
cargo test --test {{FILE}} {{ARGS}}
# Run tests with coverage
test-coverage:
cargo test --all-features