-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
34 lines (28 loc) · 1.25 KB
/
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
# override the default just command to show the list of available recipes
default:
@just --list
# lint with clippy
clippy-release:
cargo clippy --release -- -W warnings -W clippy::pedantic -W clippy::nursery -W clippy::all -W clippy::cargo -W clippy::cognitive_complexity -A clippy::cargo_common_metadata
# run all tests with nextest
test-all *ARGS: check-dependencies
cargo nextest run --verbose {{ ARGS }}
# run all tests with nextest in watch mode
test-watch-all *ARGS: check-dependencies
cargo watch -c -w . -x "nextest run --verbose {{ ARGS }}"
# run all tests with nextest in watch mode, use the cranelift compiler to reduce incremental build times
test-watch-all-cranelift *ARGS: check-dependencies
rustup override set nightly
export RUSTFLAGS="${RUSTFLAGS} -Zthreads=8"
CARGO_PROFILE_DEV_CODEGEN_BACKEND=cranelift cargo watch -q -c --ignore '**/generated_at_build.rs' -w . -x "+nightly nextest run -Zcodegen-backend --all-features --verbose {{ARGS}}"
# build the project in release mode
build-release:
cargo build --release --verbose
# validate that cargo-nextest is installed
check-dependencies:
#!/bin/sh
! type cargo-nextest > /dev/null 2>&1 && {
echo "carg-nextest is not installed. Aborting...";
exit 1;
}
exit 0;