-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
61 lines (51 loc) · 1.44 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
59
60
61
# General SDLC tasks driven by Just
# https://just.systems
_default:
@just --list --unsorted
# Setups Rust toolchain and Cargo extensions
setup:
@echo "→ Installing and activate Rust toolchain"
rustup show active-toolchain
@echo
@echo "→ Installing Cargo Binstall"
./scripts/cargo-binstaller.sh
@echo
@echo "→ Installing Cargo extensions"
./scripts/cargo-plugins.sh
@echo
# Checks minimum supported Rust toolchain version
msrv:
@echo "→ Checking minimum supported Rust toolchain version (MSRV)"
cargo msrv verify
@echo
# Checks code formatting and smells
lint:
@echo "→ Checking code formatting (rustfmt)"
cargo fmt --check
@echo
@echo "→ Checking code smells (clippy)"
cargo clippy --all-targets --all-features -- -D warnings
@echo
# Quick compiles this project and catches errors
compile:
@echo "→ Compiling project and checking errors"
cargo check
@echo
# Runs project tests
tests:
@echo "→ Running project tests"
cargo nextest run
@echo
# Builds release binaries for all supported compilation targets
assemble:
@echo "→ Building binaries for all supported targets"
./scripts/cross-build.sh
@echo
# Runs supply-chain checks and generates SecOps artifacts
security:
@echo "→ Enforcing constraints over dependencies"
cargo deny check
@echo
@echo "→ Generating SBOMs"
cargo cyclonedx --format json
@echo