-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathjustfile
47 lines (35 loc) · 885 Bytes
/
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
#!/usr/bin/env just --justfile
@_default:
just --list
# Clean all build artifacts
clean:
cargo clean
update:
cargo +nightly -Z unstable-options update --breaking
cargo update
# Run cargo clippy
clippy:
cargo clippy --workspace --all-targets -- -D warnings
# Test code formatting
test-fmt:
cargo fmt --all -- --check
# Run cargo fmt
fmt:
cargo +nightly fmt -- --config imports_granularity=Module,group_imports=StdExternalCrate
# Build and open code documentation
docs:
cargo doc --no-deps --open
# Quick compile
check:
RUSTFLAGS='-D warnings' cargo check
# Run all tests
test:
RUSTFLAGS='-D warnings' cargo test
# Test documentation
test-doc:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
rust-info:
rustc --version
cargo --version
# Run all tests as expected by CI
ci-test: rust-info test-fmt clippy check test test-doc