-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
54 lines (41 loc) · 996 Bytes
/
justfile
File metadata and controls
54 lines (41 loc) · 996 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
default:
@just --list
# показать список команд
help:
@just --list
# форматирование + линтер
dev: fmt lint
@echo "✅ dev ok"
# юнит-тесты (cargo test)
test:
cargo test
# линтер + тесты + фикстуры
check: lint test fixtures
@echo "✅ check ok"
# cargo fmt
fmt:
cargo fmt
# cargo clippy с -D warnings
lint:
cargo clippy -- -D warnings
# релизная сборка
build:
cargo build --release
# запуск форматтера
run *args:
cargo run -- {{args}}
# запуск форматтера с записью (-w)
fix *args:
cargo run -- -w {{args}}
# фикстурные тесты (input → expected)
fixtures:
./bin/check-fixtures
# очистка target/
clean:
cargo clean
# git diff с разбиением на части по лимиту символов
d chars="15000":
./bin/diff-all {{chars}}
# git diff --staged
dc:
git diff --staged