-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add justfile to replace xtask scripts
- Loading branch information
1 parent
b325e85
commit 11303bc
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}}' |