-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjustfile
More file actions
50 lines (39 loc) · 964 Bytes
/
justfile
File metadata and controls
50 lines (39 loc) · 964 Bytes
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
# Prints the list of recipes.
default:
@just --list
# Builds the whole project.
build:
cargo build
# Tests the whole project.
test:
cargo test
# Alias to the format recipe.
fmt:
@just format
# Formats the rust, toml and sh files in the project.
format:
cargo fmt --all
find . -type f -iname "*.toml" -print0 | xargs -0 taplo format
# Runs clippy with the a feature flag if provided.
lint:
cargo clippy --all -- -D warnings
# Tries to fix clippy issues automatically.
lintfix:
cargo clippy --fix --allow-staged --allow-dirty --all-features
just format
# Checks the whole project with all the feature flags.
check-all:
cargo check --all-features
# Cargo check.
check:
cargo check
# Cargo clean and update.
refresh:
cargo clean && cargo update
# Cargo watch.
watch:
cargo watch -x lcheck
# Installs pre-commit git hooks.
install-git-hooks:
./scripts/hooks/commit-msg.sh --install
./scripts/hooks/pre-commit.sh --install