-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
37 lines (29 loc) · 883 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
set dotenv-load
# Perform all verifications (compile, test, lint, etc.)
verify: test lint doc check-msrv
# TODO cargo semver-checks
cargo deny check licenses
# Watch the source files and run `just verify` when source changes
watch:
cargo watch --delay 0.1 --clear --why -- just verify
# Run the tests
test:
cargo hack test --tests --feature-powerset --locked
cargo test --examples --all-features --locked
cargo test --doc --all-features --locked
# Run the static code analysis
lint:
cargo fmt -- --check
cargo hack clippy --each-feature --all-targets --locked
# Build the documentation
doc *args:
cargo doc --all-features --no-deps {{args}}
# Open the documentation page
doc-open: (doc "--open")
# Make sure the MSRV is satisfiable
check-msrv:
cargo msrv verify
release *args: verify
test $GITHUB_TOKEN
test $CARGO_REGISTRY_TOKEN
cargo release {{args}}