-
Notifications
You must be signed in to change notification settings - Fork 37
/
justfile
58 lines (45 loc) · 1.1 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
52
53
54
55
56
57
58
# List the available commands
default:
@just --list
# Run Florestad locally
run:
cargo run --bin florestad
# Runs Florestad locally with release options
run-release:
cargo run --release --bin florestad
# Compile project with debug options
build:
cargo build
# Compile project with release options
build-release:
cargo build --release
# Clean project build directory
clean:
cargo clean
# Execute all tests
test name="":
@just test-doc {{name}}
@just test-unit {{name}}
@just test-int {{name}}
# Execute doc tests
test-doc name="":
cargo +nightly test {{name}} --doc
# Execute unit tests
test-unit name="":
cargo test --lib {{name}} -- --nocapture
# Execute integration tests
test-int name="":
cargo test --test '*' {{name}} -- --nocapture
# Generate documentation for all crates
doc:
@just test-doc
cargo +nightly doc --no-deps
# Format code and run configured linters
lint:
cargo +nightly fmt --all && cargo +nightly clippy --all-targets
# Format code
fmt:
cargo +nightly fmt --all
# Checks the formatting
format:
cargo +nightly fmt --all --check