-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
81 lines (62 loc) · 1.37 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name := "bump"
export RUST_BACKTRACE := "1"
export RUST_LOG := "trace"
default:
just --list
# Install depend tools
deps:
rustup component add rustfmt
rustup component add clippy
rustup component add rust-src
cargo install cargo-outdated
cargo install cargo-audit
cargo install cargo-llvm-cov
rustup show
# Execute a main.rs
run *arg="major 1.3.3": fix fmt clippy
cargo run -- {{ arg }}
# Run the tests
test: fix fmt clippy
cargo test -- --nocapture
# Check syntax, but don't build object files
check: fix fmt clippy
cargo check
# Build all project
build:
cargo build
# Build all project
release-build:
cargo build --release
# Check module version
check-lib:
cargo outdated -R
# Update modules
update:
cargo update
# Remove the target directory
clean:
cargo clean
# Run fmt
fix:
cargo fix --allow-staged --allow-dirty
# Run fmt
fmt:
cargo fmt
# Run fmt
fmt-check:
cargo fmt --all -- --check
# Run clippy
clippy:
cargo clippy --all-features -- -D warnings
# Run benchmark
bench:
cargo bench
# Audit your dependencies for crates with security vulnerabilities reported
audit:
cargo audit
# Build container
container version:
docker buildx build --platform=linux/amd64,linux/arm64 -t ghcr.io/watawuwu/{{name}}:{{version}} --push .
# SouceCode base coverage
coverage:
cargo llvm-cov --open