-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
46 lines (36 loc) · 1.08 KB
/
Copy pathjustfile
File metadata and controls
46 lines (36 loc) · 1.08 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
# xdy workspace build recipes.
#
# Requires: just (https://github.com/casey/just), cargo, cargo +nightly (for
# fmt).
# Default recipe: verify everything.
default: verify
# Run clippy on the entire workspace.
clippy *args:
cargo clippy --workspace --all-targets {{args}}
# Format with nightly rustfmt (required for unstable options in rustfmt.toml).
fmt *args:
cargo +nightly fmt {{args}}
# Check formatting without modifying files.
fmt-check:
cargo +nightly fmt -- --check
# Run all workspace tests.
test *args:
cargo test --workspace {{args}}
# Run doc-tests only.
doc-test *args:
cargo test --workspace --doc {{args}}
# Run benchmarks.
bench *args:
cargo bench -p xdy {{args}}
# Full verification: fmt check, clippy, tests, doc links.
verify:
@just fmt-check
@just clippy
@just test
@just doc-check
# Build documentation.
doc *args:
cargo doc --workspace --no-deps {{args}}
# Check documentation for broken intra-doc links and other rustdoc warnings.
doc-check:
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --document-private-items