-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathJustfile
More file actions
36 lines (29 loc) · 768 Bytes
/
Justfile
File metadata and controls
36 lines (29 loc) · 768 Bytes
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
# This help screen
show-help:
just --list
# Test it was built ok
test:
RUST_BACKTRACE=1 cargo test
# Test the markdown in the docs directory
specdown: build
specdown run --temporary-workspace-dir --add-path "{{justfile_directory()}}/target/release" ./README.md
# Run a smoke test and see if the app runs
smoke-test: build
cargo run -- -h
# Build release version
build:
cargo build --release
# Lint it
lint:
cargo fmt --all -- --check
cargo clippy --all-features
cargo check
cargo audit
# Format what can be formatted
fmt:
cargo fix --allow-dirty
cargo clippy --allow-dirty --fix --all-features
cargo fmt --all
# Clean the build directory
clean:
cargo clean