-
Notifications
You must be signed in to change notification settings - Fork 2
/
justfile
29 lines (22 loc) · 756 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
#!/usr/bin/env -S just --justfile
# ^ A shebang isn't required, but allows a justfile to be executed
# like a script, with `./justfile test`, for example.
set dotenv-load := true
# Show available commands
default:
@just --list --justfile {{justfile()}}
# Show unused dependencies
udeps:
cargo +nightly udeps
# Run cargo doc
doc $RUSTDOCFLAGS="-D warnings":
cargo doc --all --no-deps
# Run cargo doc and open the docs in your browser
doc-open $RUSTDOCFLAGS="-A missing_docs":
cargo doc --all --no-deps --open
# Run cargo clippy on all crates
clippy *clippy-args:
cargo clippy --all --tests --examples --benches -- {{ clippy-args }}
# Run rust tests with `cargo nextest`
nextest *FLAGS="--all":
cargo nextest run {{ FLAGS }}