forked from Mootikins/rsvp-term
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
48 lines (32 loc) · 856 Bytes
/
justfile
File metadata and controls
48 lines (32 loc) · 856 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
# rsvp-term justfile
default:
@just --list
build:
@cargo build 2>&1 | awk '/warning|error|Finished/'
build-release:
@cargo build --release 2>&1 | awk '/warning|error|Finished/'
test:
@cargo test 2>&1 | awk '/^test result:|FAILED|panicked/'
test-verbose:
cargo test -- --nocapture
test-review:
cargo insta test --review
lint:
@cargo clippy -- -D warnings 2>&1 | awk '/warning\[|error\[|generated|could not compile/'
fmt:
cargo fmt
fmt-check:
@cargo fmt -- --check
ci: fmt-check lint test
run *ARGS:
@cargo run --quiet -- {{ARGS}}
run-release *ARGS:
@cargo run --release --quiet -- {{ARGS}}
clean:
cargo clean
update:
cargo update
outdated:
@cargo outdated --depth 1 2>/dev/null | awk 'NR<=2 || (!/Removed/ && !/---/)'
release-check: ci build-release
@echo "✓ All checks passed!"