-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
21 lines (16 loc) · 670 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Justfiles are processed by the just command runner (https://just.systems/).
# You can install it with `brew install just` or `cargo install just`
_default:
just --list
# Run rustfmt
fmt:
rustup run nightly cargo fmt -- \
--config-path ./fmt/rustfmt.toml
# Run clippy fix and rustfmt afterwards
fix *args: && fmt
cd {{invocation_directory()}}; cargo clippy --fix --all-targets --all-features {{args}}
# Prints the error stack for a given test to stdout
printerr test $PRINTERR="true":
@cargo test --quiet --lib -- --exact test::{{test}} --nocapture
printerr-all $PRINTERR="true" $RUST_TEST_THREADS="1":
@cargo test --lib -- --exact --nocapture