-
Notifications
You must be signed in to change notification settings - Fork 19
/
Justfile
51 lines (40 loc) · 1.12 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
alias fmt := format
alias pre := pre-commit
# run all tests
test *args='':
cargo test --all {{args}}
# compile but don't run all tests
compile-tests *args='':
cargo test --no-run {{args}}
# build debug version
build *args='':
cargo build {{args}}
# build release version
build-release *args='':
cargo build --release {{args}}
# run clippy
lint *args='':
cargo clippy --all-features {{args}}
# reformat all rust files
format *args='':
cargo fmt --all {{args}}
# reformat all nix files
format-nix *args='':
alejandra .
# run cargo deny to check dependencies
check-deps *args='':
cargo deny --all-features check {{args}}
run-all-examples:
for example in icechunk/examples/*.rs; do cargo run --example "$(basename "${example%.rs}")"; done
# run all checks that CI actions will run
pre-commit $RUSTFLAGS="-D warnings -W unreachable-pub -W bare-trait-objects":
just compile-tests "--locked"
just build
just format "--check"
just lint "-p icechunk -p icechunk-python"
just test
just run-all-examples
just check-deps
pre-commit-python:
just format "--check -p icechunk-python"
just lint "-p icechunk-python"