-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
87 lines (59 loc) · 1.45 KB
/
justfile
File metadata and controls
87 lines (59 loc) · 1.45 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
84
85
86
87
_default:
@just --list
build:
cargo build --release
build-debug:
cargo build
run *args:
cargo run -- {{args}}
debug *args:
RUST_LOG=debug cargo run -- {{args}}
test:
cargo test
test-verbose:
cargo test -- --nocapture
test-filter filter:
cargo test {{filter}} -- --nocapture
fmt-check:
cargo fmt --all -- --check
fmt:
cargo fmt --all
lint:
cargo clippy -- -D warnings
lint-fix:
cargo clippy --fix --allow-dirty --allow-staged
check: fmt-check lint test
@echo "✅ All checks passed!"
clean:
cargo clean
install:
cargo install --path . --force
install-release:
cargo install --path . --force --profile release
uninstall:
cargo uninstall zummon
watch:
cargo watch -x build
watch-test:
cargo watch -x test
update:
cargo update
outdated:
cargo outdated || echo "Install cargo-outdated: cargo install cargo-outdated"
debug-log *args:
RUST_LOG=debug cargo run -- {{args}} 2>&1 | tee zummon-debug.log
@echo "Debug log saved to: zummon-debug.log"
bench-build:
@time cargo build --release
profile *args:
cargo flamegraph -- {{args}}
audit:
cargo audit || echo "Install cargo-audit: cargo install cargo-audit"
docs:
cargo doc --open
version:
@cargo run -- --version 2>/dev/null || echo "Build first: just build"
help:
@cargo run -- --help 2>/dev/null || echo "Build first: just build"
dev: fmt-check lint test build
@echo "✅ Ready to commit!"