-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
41 lines (33 loc) · 1.06 KB
/
justfile
File metadata and controls
41 lines (33 loc) · 1.06 KB
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
set lazy := true
toolchain := ""
_list:
@just --list
# Format project.
fmt:
just --unstable --fmt
# nixpkgs-fmt .
fd --type=file --hidden --extension=md --extension=yml --exec-batch prettier --write
fd --hidden --extension=toml --exec-batch taplo format
cargo +nightly fmt
# Check project.
check:
just --unstable --fmt --check
# nixpkgs-fmt --check .
fd --type=file --hidden --extension=md --extension=yml --exec-batch prettier --check
fd --hidden --extension=toml --exec-batch taplo format --check
fd --hidden --extension=toml --exec-batch taplo lint
cargo +nightly fmt -- --check
cargo clippy --workspace --all-targets --all-features
[private]
test-lib:
cargo {{ toolchain }} nextest run --workspace --all-targets --all-features
[private]
test-doc:
cargo {{ toolchain }} test --doc --workspace --all-features
[env("RUSTDOCFLAGS", "--cfg docsrs -D warnings")]
[private]
test-doc-compile:
cargo {{ toolchain }} doc --workspace --no-deps --all-features
# Run tests.
[parallel]
test: test-lib test-doc test-doc-compile