-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathJustfile
41 lines (31 loc) · 983 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
30
31
32
33
34
35
36
37
38
39
40
41
# This causes the .env file to be read by Just.
set dotenv-load := true
# Allow for positional arguments in Just receipes.
set positional-arguments := true
# Default recipe that runs if you type "just".
default: fmt clippy tests doctests testall
# Formats and checks rust files
fmt: fmt-write fmt-check
fmt-write: # nightly format all rust files
cargo +nightly fmt --all
fmt-check: # nightly check formatting of all rust files
cargo +nightly fmt --all --check
clippy: # nightly run clippy on all rust files
cargo +nightly clippy --all-targets --all-features -- -D warnings
tests: # run all tests
cargo +nightly nextest run \
--locked \
--all-features \
--workspace \
--exclude examples
testall: # run all tests default features
cargo test --all
doctests: # run all doctests
cargo +nightly test \
--locked \
--doc \
--all-features \
--workspace \
--exclude examples
axt: # run axt
cd bins/axt && cargo +nightly run -- -vvv