-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJustfile
39 lines (35 loc) · 906 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
# Checks, builds, documents, and tests everything.
all: check clippy build-debug doc build-release test
# Removes compilation artifacts.
clean:
cargo clean
# Watches the compilation of a target.
watch TARGET="all":
watchexec -cre rs,toml "just {{TARGET}}"
# Runs various benchmarks.
bench:
cargo bench --all
# Builds in both debug and release configurations.
build: build-debug build-release
# Builds the project in the debug configuration.
build-debug:
cargo build
# Builds the project in the release configuration.
build-release:
cargo build --release
# Checks that the project can compile.
check:
cargo check --all
# Checks for additional lints.
clippy:
cargo clippy --all
# Creates documentation.
doc:
cargo doc --all
# Tests in both debug and release configurations.
test:
cargo test --all
cargo test --all --release
# Checks for outdated dependencies.
outdated-deps:
cargo outdated -R