-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
37 lines (32 loc) · 857 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
_list:
@just --list --unsorted
# Check project
check:
just --unstable --fmt --check
nix fmt -- --check .
taplo fmt --check `fd --extension=toml`
prettier --check `fd --extension=md`
cargo fmt -- --check
cargo clippy --tests --examples -- -D warnings
taplo lint `fd --extension=toml`
RUSTDOCFLAGS='-Dwarnings' cargo doc --no-deps
cargo nextest run
nix flake show
cargo udeps
cargo outdated --depth=1
# Format code
fmt:
just --unstable --fmt
nix fmt
taplo fmt `fd --extension=toml`
cargo fmt
prettier --write `fd --extension=md`
# List tests
list-tests:
cargo nextest list
# Show test groups
show-test-groups:
cargo nextest show-config test-groups
# Run cargo check on changes
watch-check:
watchexec --clear --restart --exts='rs,toml' -- cargo check --tests --examples