-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
49 lines (36 loc) · 887 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
#!/usr/bin/env -S just --justfile
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
set shell := ["bash", "-cu"]
_default:
@just --list -u
alias r := ready
init:
cargo binstall watchexec-cli cargo-insta typos-cli cargo-shear dprint -y
ready:
git diff --exit-code --quiet
typos
just fmt
just check
just test
just lint
just doc
watch *args='':
watchexec --no-vcs-ignore {{args}}
fmt:
cargo shear --fix
cargo fmt --all
dprint fmt
check:
cargo check --workspace --all-features --all-targets --locked
watch-check:
just watch "'cargo check; cargo clippy'"
test:
cargo test
lint:
cargo clippy --workspace --all-targets --all-features -- --deny warnings
[unix]
doc:
RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items
[windows]
doc:
$Env:RUSTDOCFLAGS='-D warnings'; cargo doc --no-deps --document-private-items