-
Notifications
You must be signed in to change notification settings - Fork 1
/
Justfile
37 lines (30 loc) · 877 Bytes
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This help screen
show-help:
just --list
# Test it was built ok
test:
RUST_BACKTRACE=1 cargo test
# Build release version
build:
cargo build --release
# Check performance
bench:
cargo bench
# Lint it
lint:
cargo +nightly fmt --all -- --check
cargo +nightly clippy --all-features -- -D warnings -Dclippy::all -D clippy::pedantic -D clippy::cargo -A clippy::multiple_crate_versions
cargo +nightly check
cargo +nightly audit
# Format what can be formatted
fmt:
cargo +nightly fix --allow-dirty --allow-staged
cargo +nightly clippy --allow-dirty --allow-staged --fix -Z unstable-options --all-features -- -D warnings -Dclippy::all -D clippy::pedantic -D clippy::cargo -D clippy::nursery -A clippy::multiple_crate_versions
cargo +nightly fmt --all
npx prettier --write **.yml
# Clean the build directory
clean:
cargo clean
# Check tests
mutate:
cargo mutants