compact binary serialization format with built-in compression
1FEATURES := "--all-features"
2NO_DEFAULTS := "--no-default-features"
3TARGETS := "--all-targets"
4NO_DEPS := "--no-deps"
5
6alias d := doc
7alias do := doc-open
8alias l := lint
9alias ok := ci
10alias t := test
11alias un := udeps
12
13default:
14 @just -l
15
16# Tests and lints.
17ci: lint test
18
19# Clean build artifacts.
20clean:
21 cargo clean
22
23# Generates documentation.
24doc:
25 cargo doc {{ NO_DEPS }}
26
27# Generates documentation and opens it.
28doc-open:
29 cargo doc {{ NO_DEPS }} --open
30
31# Check formatting and run clippy on all targets with all features.
32lint: check
33 cargo fmt --all -- --check
34 cargo clippy {{ FEATURES }} -- -D warnings
35
36# Format and fix clippy on all targets with all features
37lintmut:
38 cargo fmt --all
39 cargo clippy {{ FEATURES }} --fix
40
41# Run all tests, or just one module.
42test:
43 cargo test --doc && \
44 cargo nextest r {{ FEATURES }} --no-tests pass --workspace --no-fail-fast; \
45
46# Runs `cargo-udeps` on all targets.
47udeps:
48 cargo +nightly udeps {{ TARGETS }}
49
50# Runs `cargo check`.
51check:
52 cargo check {{ NO_DEFAULTS }}
53 cargo check