-
Notifications
You must be signed in to change notification settings - Fork 20
/
justfile
61 lines (44 loc) · 966 Bytes
/
justfile
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
default: test doc clippy format shellcheck
all: default prof perf binary logo latex
alias b := build
alias d := doc
alias t := test
alias l := latex
alias c := clippy
alias f := format
build:
@cargo build -r
test:
@cargo test
doc:
@cargo doc
testignored:
@cargo test -- --ignored
clippy:
@cargo clippy -r
format:
@cargo fmt
@alejandra -q .
latex:
@cd extra && bash latex.sh
perf:
@cd extra && bash perf.sh
prof:
@cd extra && bash prof.sh
binary:
@cd extra && bash binary.sh
upgrade:
@cargo upgrade && cargo update
shellcheck:
@shellcheck extra/*.sh
nix:
@nix flake update
todo:
@rg -g '!justfile' todo
logo:
@cd extra && python logo.py
@cd extra && magick -background none logo.svg -resize 5000x5000 logo.png
@cd extra && python card.py
@cd extra && magick -background none card.svg -resize 1280x640\! card.png
@cd extra && inkscape -w 2560 -h 1280 card.svg -o card.png
@cd extra && rm -f logo.png card.svg