Skip to content

Commit 780b13f

Browse files
feat: justfile (#9)
1 parent 6c6cd7b commit 780b13f

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

justfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# list available recipes
2+
default:
3+
@just --list
4+
5+
# fmt → lint → test → build
6+
[group("ci")]
7+
check: fmt lint test build
8+
9+
# format with nightly (required for rustfmt.toml options)
10+
[group("dev")]
11+
fmt:
12+
cargo +nightly fmt
13+
14+
# run clippy with all workspace lints as errors
15+
[group("dev")]
16+
lint:
17+
cargo clippy --all-targets --all-features -- -D warnings
18+
19+
# run tests, accepts extra args: just test --lib
20+
[group("dev")]
21+
test *ARGS:
22+
cargo test {{ARGS}}
23+
24+
# compile the workspace
25+
[group("dev")]
26+
build:
27+
cargo build

0 commit comments

Comments
 (0)