-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
34 lines (26 loc) · 862 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
# Fail on early and on unset variables in non-shebang recipes
set shell := ["bash", "-euo", "pipefail", "-c"]
# Allow usage of bash methods to handle multiple arguments and work around quoting issues
set positional-arguments
rust_nightly_version := `cat rust-toolchain-nightly`
@default: fmt lint test
fmt:
cargo '+{{rust_nightly_version}}' fmt --all
bumpdeps:
cargo install cargo-edit
cargo upgrade
lint: lint-code
lint-code strict="":
cargo '+{{rust_nightly_version}}' fmt -- --check
cargo clippy \
--workspace \
--tests \
--benches \
--all-targets \
--all-features \
--quiet \
-- {{ if strict != "" { "-D warnings" } else { "" } }}
cargo doc --all --no-deps --document-private-items --quiet
test: test-unit
test-unit:
cargo test --workspace --bins --examples --tests