-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
44 lines (36 loc) · 1.19 KB
/
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
_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}}
# Test workspace.
test:
cargo test --workspace --no-default-features
cargo test --workspace --all-features
# Document workspace.
doc:
RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc --no-deps --workspace --all-features
# Document workspace and watch for changes.
doc-watch:
RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc --no-deps --workspace --all-features --open
cargo watch -- RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc --no-deps --workspace --all-features
# Check project formatting.
check:
just --unstable --fmt --check
npx -y prettier --check '**/*.md'
taplo lint
cargo +nightly fmt -- --check
# Format project.
fmt:
just --unstable --fmt
npx -y prettier --write '**/*.md'
taplo format
cargo +nightly fmt