-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
83 lines (62 loc) · 1.31 KB
/
Copy pathjustfile
File metadata and controls
83 lines (62 loc) · 1.31 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# KeyWatch justfile
default:
@just --list
# Run the application
run *args="":
cargo run {{args}}
# Build release binary
build:
cargo build --release
# Run all tests
test:
cargo test
# Run tests with output
test-v:
cargo test -- --nocapture
# Run specific test
test-named name:
cargo test {{name}}
# Format code
fmt:
cargo +nightly fmt --all
# Lint with clippy
clippy:
cargo clippy --all-targets --all-features
# Run clippy with warnings as errors
clippy-strict:
cargo clippy --all-targets --all-features -- -D warnings
# Build and run release
run-release:
cargo run --release
# Full check pipeline
check: fmt clippy test
@echo "✓ All checks passed"
# Run benchmarks (requires criterion)
bench:
cargo bench
# Generate docs
doc:
cargo doc --no-deps --open
# Build docs without opening
doc-build:
cargo doc --no-deps
# Add a new dependency
add dep:
cargo add {{dep}}
# Remove a dependency
remove dep:
cargo remove {{dep}}
# Update dependencies
update:
cargo update
# Audit dependencies for vulnerabilities
audit:
cargo audit
# Clean build artifacts
clean:
cargo clean
# Wipe and rebuild from scratch
scrub: clean build
# Check available targets
targets:
cargo metadata --format-version 1 | jq '.targets[] | select(.kind[0] == "bin") | .name' -r