-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.justfile
More file actions
53 lines (40 loc) · 1.04 KB
/
.justfile
File metadata and controls
53 lines (40 loc) · 1.04 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
# List all the available commands
default:
just --list
# Fix Rust formatting
fmt:
cargo fmt --all
# Fix TOML formatting with `taplo`
toml-fmt:
taplo format
# Check Rust formatting
check-fmt:
cargo fmt --all --check
# Rust `clippy` lints
clippy:
cargo clippy --workspace --examples --tests --benches --all-features --all-targets --locked
# TOML lint with `taplo`
toml-lint:
taplo lint
# Check TOML formatting with `taplo`
toml-check-fmt:
taplo format --check
# Rust unit tests with `cargo-nextest`
unit-test:
cargo --locked nextest run --all-features --workspace
# Rust documentation tests
doctest:
cargo test --doc --all-features --workspace
# Run all lints and formatting checks
lints: toml-check-fmt toml-lint check-fmt clippy
# Rust all tests
test: unit-test doctest
# Publish crate to crates.io
publish:
cargo publish --token $CARGO_REGISTRY_TOKEN
# Check supply chain security analsis with `cargo-audit`
audit:
cargo audit
# Check GitHub Actions security analysis with `zizmor`
check-github-actions-security:
zizmor .