Skip to content

Commit d60e09d

Browse files
committed
Merge #152: Add a justfile
a39b6f5 Add a justfile (Tobin C. Harding) Pull request description: Introduce usage of `just` by adding a justfile. ref: https://github.com/casey/just ACKs for top commit: apoelstra: ACK a39b6f5 Tree-SHA512: 9220301600ca6a22c8253005a454cad83ce3e65c9312122acb282f6b14a59c99785b34eb1c8131a8e61cf65c77739e5ad41e2705332e08d2d8ea297faac1763d
2 parents 76918c5 + a39b6f5 commit d60e09d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

justfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[private]
2+
default:
3+
@just --list
4+
5+
6+
# run `cargo build` on everything
7+
build:
8+
cargo build --workspace --all-targets
9+
10+
11+
# run `cargo check` on everything
12+
check:
13+
cargo check --workspace --all-targets
14+
15+
16+
# run code formatter
17+
format:
18+
cargo +nightly fmt
19+
20+
21+
# run tests
22+
test: build
23+
cargo test --all-features
24+
25+
26+
# run `cargo clippy` on everything
27+
clippy:
28+
cargo clippy --locked --offline --workspace --all-targets -- --deny warnings
29+
30+
# run `cargo clippy --fix` on everything
31+
clippy-fix:
32+
cargo clippy --locked --offline --workspace --all-targets --fix

0 commit comments

Comments
 (0)