-
Notifications
You must be signed in to change notification settings - Fork 4
/
Justfile
38 lines (30 loc) · 736 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
38
set positional-arguments
alias t := test
alias d := doc
alias l := lint
alias f := fmt
alias b := build
# default recipe to display help information
default:
@just --list
# Test with all features
test:
cargo nextest run --locked --workspace -E "kind(lib) | kind(bin) | kind(proc-macro)"
# Runs both `doc-tests` and `doc-lints` recipes
doc: doc-tests doc-lints
# Doc Tests
doc-tests:
cargo test --locked --workspace --doc
# Doc Lints
doc-lints:
cargo doc --document-private-items
# Lint
lint:
cargo clippy --workspace --examples --tests --benches --all-features \
&& cargo hack check
# Format
fmt:
cargo +nightly fmt --all && cargo +nightly fmt --all --check
# Build
build:
cargo build --workspace --all-features