-
Notifications
You must be signed in to change notification settings - Fork 11
/
Justfile
55 lines (42 loc) · 1.18 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
set positional-arguments
alias t := test
alias f := fmt
alias l := lint
alias b := build
alias opt8n := run
# default recipe to display help information
default:
@just --list
# Runs opt8n
run:
cargo run --bin opt8n
# Run all tests
tests: test test-docs
# Test for the native target with all features
test *args='':
cargo nextest run --workspace --all --all-features $@
# Test the Rust documentation
test-docs:
cargo test --doc --all --locked
# Fixes and checks all workspace formatting
fmt: fmt-fix fmt-check
# Fixes the formatting of the workspace
fmt-fix:
cargo +nightly fmt --all
# Check the formatting of the workspace
fmt-check:
cargo +nightly fmt --all -- --check
# Lint workspace and docs
lint: lint-docs clippy
# Lint the Rust documentation
lint-docs:
RUSTDOCFLAGS="-D warnings" cargo doc --all --no-deps --document-private-items
# Run clippy lints on the workspace
clippy:
cargo +nightly clippy --workspace --all --all-features --all-targets -- -D warnings
# Build for the native target
build *args='':
cargo build --workspace --all $@
# Generates all test fixtures for scripts in examples/exec-scripts
gen fork_url:
@just ./examples/exec-scripts/gen {{fork_url}}