-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
57 lines (43 loc) · 864 Bytes
/
justfile
File metadata and controls
57 lines (43 loc) · 864 Bytes
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
# hu
default:
@just --list
# Build debug
build:
cargo build
# Run with args
run *args:
cargo run -- {{args}}
# Run unit tests only
unit:
cargo test
# Run tests with coverage
coverage:
cargo tarpaulin --out Html
# Run all checks and tests (fix + check + tests + coverage)
test: fix check unit coverage
@echo "All checks passed"
# Format code
fmt:
cargo fmt
# Lint with clippy
clippy:
cargo clippy -- -D warnings
# Run all checks (fmt + clippy)
check:
cargo fmt --check
cargo clippy -- -D warnings
# Fix all formatting and lints
fix:
cargo fmt
cargo clippy --fix --allow-dirty --allow-staged -- -D warnings
# Build release
release:
cargo build --release
# Install locally
install:
cargo install --path .
# Clean
clean:
cargo clean
# Alias for test (full check before commit)
pre-commit: test