-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathJustfile
More file actions
34 lines (25 loc) · 775 Bytes
/
Justfile
File metadata and controls
34 lines (25 loc) · 775 Bytes
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
_prechecks:
-cargo hack 2> /dev/null
if [ $? -eq 101 ]; then \
cargo install cargo-hack; \
fi
fmt:
cargo fmt --all
check-fmt:
cargo fmt --all -- --check
build: _prechecks
cargo hack --feature-powerset build
tests:
cargo test --all-features --no-run
cargo test --all-features
docs:
cargo doc --no-deps --document-private-items --keep-going --all-features
examples:
cargo clippy --example=dyn_tokio --features=dynamic_output
cargo clippy --example=msg-tokio --features=dynamic_output
cargo clippy --example=static --features=static_output
cargo clippy --example=less-rs --features=dynamic_output,search
lint: _prechecks
cargo hack --feature-powerset clippy --all-targets
verify-all: check-fmt build tests examples lint docs
@echo "Ready to go"