Skip to content

Commit

Permalink
Add justfile to replace xtask scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter authored and nickgerace committed Dec 10, 2024
1 parent b325e85 commit 11303bc
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
_default:
@just --list

# Scan for potential bloat
bloat:
cargo bloat --release
cargo bloat --release --crates

# Build all targets
build:
cargo build --all-targets

# Build release targets
build-release:
cargo build --release

# Run the ci suite
ci:
cargo fmt --all -- --check
cargo check --all-targets --all-features --workspace
cargo clippy --all-targets --all-features --no-deps --workspace -- -D warnings
cargo doc --all --no-deps
cargo test --all-targets --workspace
cargo build --locked --all-targets

# Run update, and baseline lints and checks
prepare:
cargo update
cargo fmt
cargo check --all-targets --all-features --workspace
cargo fix --edition-idioms --allow-dirty --allow-staged
cargo clippy --all-features --all-targets --workspace --no-deps --fix --allow-dirty --allow-staged

# Scan for vulnerabilities and unused dependencies
scan: prepare
cargo +nightly udeps
cargo audit

bench directory=('../'): build-release
hyperfine --warmup 1 'target/release/gfold {{directory}}' 'gfold {{directory}}'

0 comments on commit 11303bc

Please sign in to comment.