Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
52 lines (43 loc) · 1.67 KB
/
Copy pathjustfile
File metadata and controls
52 lines (43 loc) · 1.67 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
42
43
44
45
46
47
48
49
50
51
52
_list:
@just --list
# Lint workspace.
clippy:
cargo clippy --workspace --no-default-features
cargo clippy --workspace --all-features
cargo hack --feature-powerset --depth=3 clippy --workspace
# Lint workspace and watch for changes.
clippy-watch:
cargo watch -- cargo clippy --workspace --all-features
# Apply possible linting fixes in the workspace.
clippy-fix *args:
cargo clippy --workspace --all-features --fix {{ args }}
cargo +nightly fmt
# Test workspace.
test:
cargo nextest run --workspace --all-features --no-tests=pass
# Check remote host fixtures (requires internet access).
test-remote timeout="30s" fixture="tests/fixtures/remote-hosts.txt":
cargo build --bin inspect-cert-chain
bash tests/remote-hosts.sh "{{ timeout }}" "{{ fixture }}"
# Document workspace.
doc *args:
RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc --no-deps --workspace --all-features {{ args }}
# Document workspace and watch for changes.
doc-watch: (doc "--open")
cargo watch -- RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc --no-deps --workspace --all-features
# Check project formatting.
check:
just --unstable --fmt --check
nixpkgs-fmt .
fd --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 -- -D warnings
# Format project.
fmt:
just --unstable --fmt
nixpkgs-fmt .
fd --hidden --extension=md --extension=yml --exec-batch prettier --write
fd --hidden --extension=toml --exec-batch taplo format
cargo +nightly fmt