generated from rustaceanrob/rust-template-repo
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
40 lines (30 loc) · 787 Bytes
/
justfile
File metadata and controls
40 lines (30 loc) · 787 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
35
36
37
38
39
40
check:
cargo fmt -- --check
cargo clippy --all-targets -- -D warnings
cargo check --all-features
run build="release":
just _run-{{build}}
_run-debug:
cargo run
_run-release:
cargo run --release
# Run a test suite: unit, msrv, min-versions
test suite="unit":
just _test-{{suite}}
_test-unit:
cargo test --lib
cargo test --doc
cargo test --examples
_test-min-versions:
just _delete-lockfile
cargo +nightly check --all-features -Z direct-minimal-versions
_test-msrv:
cargo install cargo-msrv@0.18.4
cargo msrv verify --all-features
# Delete unused files or branches: data, lockfile, branches
delete item="branches":
just _delete-{{item}}
_delete-lockfile:
rm -f Cargo.lock
_delete-branches:
git branch --merged | grep -v \* | xargs git branch -d