-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
36 lines (27 loc) · 758 Bytes
/
justfile
File metadata and controls
36 lines (27 loc) · 758 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
cargo := "cargo"
# List available commands
default:
just --list
# Run all checks (clippy, fmt, and tests)
all: fmt clippy test
# Check code for compilation errors
check:
{{cargo}} check --workspace
# Run clippy with strict warnings
clippy *args:
{{cargo}} clippy --all-targets --all-features {{args}} -- -D warnings
# Run all tests using nextest
test *args:
{{cargo}} nextest run {{args}}
# Run integration tests specifically
test-integ:
{{cargo}} nextest run -E 'binary(integration_test)'
# Format code and check for style issues
fmt:
{{cargo}} fmt --all
# Check formatting without applying changes
fmt-check:
{{cargo}} fmt --all -- --check
# Run the binary with optional arguments
run *args:
{{cargo}} run {{args}}