forked from maiko-rs/maiko
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
55 lines (43 loc) · 1.22 KB
/
justfile
File metadata and controls
55 lines (43 loc) · 1.22 KB
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
# Default task
default: check
# Quick check: format and lint
check:
cargo fmt --all -- --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
# Full CI: format, lint, test, spell, build examples
ci: check test spell build
# Format code
fmt:
cargo fmt --all
# Run all tests
test:
cargo test --workspace --all-features
# Lint with warnings as errors
lint:
cargo clippy --workspace --all-targets --all-features -- -D warnings
# Build workspace including examples
build:
cargo build --workspace --all-features --examples
# Build docs (with all features to show everything)
doc:
cargo doc --workspace --all-features --no-deps
# Open docs in browser
doc-open:
cargo doc --workspace --all-features --no-deps --open
# Run spell checker
spell:
cargo spellcheck
# Run all examples
examples:
cargo run --example hello-world
cargo run --example pingpong
cargo run --example guesser
cargo run --example monitoring --features monitoring
cargo run --example arbitrage --features test-harness
cargo run --example backpressure --features monitoring
# Clean build artifacts
clean:
cargo clean
# Watch and run tests on changes (requires bacon)
watch:
bacon test