-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
40 lines (31 loc) · 927 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
38
39
40
set dotenv-load := true
# Uncomment the next line to enable positional arguments.
#set positional-arguments := true
export RUST_BACKTRACE := "full"
_default:
@just --list
# Create an optimized 'release' build
@build:
cargo build --release
# Format, lint and check that project compiles
@compile:
cargo fmt --all
cargo clippy -- -D warnings
# Format the project with rustfmt
@format:
cargo fmt --all
cargo clippy -- --D warnings
# Quickly format and run linter
@lint:
cargo clippy && echo " *** [Linter finished successfully] ***"
# Run code-quality and CI-related tasks locally
@pre-commit:
cargo fmt --all -- --check
cargo clippy -- --D warnings
cargo test
# Run tests with 'nocapture' and 'quiet' flags set
@test:
cargo test -- --nocapture --quiet
# Run tests single-threaded for concurrency-related debugging
@test-debug:
cargo test -- --test-threads=1 --nocapture