-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
63 lines (48 loc) · 1.41 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Justfile
# By default, run a full check (check)
default: check
# Full check: fmt (format check), clippy, tests
check:
@echo "==> Checking format..."
cargo fmt --all -- --check
@echo "==> Checking clippy..."
cargo clippy --all-targets --all-features -- -D warnings
@echo "==> Running tests with nextest..."
cargo nextest run --workspace --all-features
@echo "==> Running audit..."
cargo audit
@echo "==> Checking outdated dependencies..."
cargo outdated
@echo "All checks passed!"
# Code formatting
fmt:
@echo "==> Formatting code..."
cargo fmt --all
# Running Clippy
clippy:
@echo "==> Clippy linting..."
cargo clippy --all-targets --all-features -- -D warnings
# Running tests (nextest)
test:
@echo "==> Running tests (debug)..."
cargo nextest run --workspace --all-features
# Running tests in release build
test-release:
@echo "==> Running tests (release)..."
cargo nextest run --workspace --all-features --release
# Generating (and opening) documentation
doc:
@echo "==> Building docs..."
cargo doc --no-deps --all-features --open
# Checking for outdated dependencies
outdated:
@echo "==> Checking outdated dependencies..."
cargo outdated
# Updating dependencies
update:
@echo "==> Updating dependencies..."
cargo update
# Checking dependencies for vulnerabilities
audit:
@echo "==> Auditing dependencies..."
cargo audit