Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
79 lines (60 loc) · 1.35 KB
/
Copy pathjustfile
File metadata and controls
79 lines (60 loc) · 1.35 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
# List available recipes
default:
@just --list
# Show available commands
help:
@just --list
# Build release binary
build:
cargo build --release
# Build debug binary
build-dev:
cargo build
# Build and run release binary
run *args:
cargo run --release -- {{ args }}
# Run tests
test *args:
cargo test --verbose {{ args }}
# Package crate for publishing / distribution
package:
cargo package --allow-dirty
# Alias for package
bundle: package
# Clean build artifacts
clean:
cargo clean
# Run all linting checks (clippy + format check)
lint: clippy check-format
# Format code with rustfmt
format:
cargo fmt
# Alias for format
fmt:
cargo fmt
# Check if code is formatted
check-format:
cargo fmt --check
# Run clippy lints denying warnings
clippy:
cargo clippy --all-targets --all-features -- -D warnings
# Run security audit
audit:
cargo audit
# Watch for changes and rebuild
watch:
cargo watch -x run
# Full CI pipeline (test + lint + audit)
ci: test lint audit
# Development environment setup
setup:
rustup component add rustfmt clippy
cargo install cargo-watch cargo-audit
@echo "Development environment setup complete!"
# Quick check for development (format + clippy)
quick-check:
cargo fmt
cargo clippy --all-targets --all-features
# Build and open documentation
docs:
cargo doc --open