Debian Codegraph @

Justfile

raw
1 _prechecks:
2 -cargo hack 2> /dev/null
3
4 if [ $? == 101 ]; then \
5 cargo install cargo-hack; \
6 fi
7
8 fmt:
9 cargo fmt --all
10
11 check-fmt:
12 cargo fmt --all -- --check
13
14 build: _prechecks
15 cargo hack --feature-powerset build
16
17 tests:
18 cargo test --all-features --no-run
19 cargo test --all-features
20
21 examples:
22 cargo check --example=dyn_tokio --features=dynamic_output
23 cargo check --example=msg-tokio --features=dynamic_output
24 cargo check --example=static --features=static_output
25 cargo check --example=less-rs --features=dynamic_output,search
26
27 lint: _prechecks
28 cargo hack --feature-powerset clippy
29
30 verify-all: check-fmt build tests examples lint
31 @echo "Ready to go"