-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
58 lines (46 loc) · 1.01 KB
/
justfile
File metadata and controls
58 lines (46 loc) · 1.01 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
54
55
56
57
58
alias c := check
alias f := format
alias t := test
alias b := build
alias bn := bench
alias bm := bench-mem
alias d := develop
alias r := run
alias rr := run-release
alias p := publish
# COMMANDS -----------------------------------------------------------------------------------------
# List commands
default:
@just --list
# Check
check:
cargo check && cargo clippy --all -- -W clippy::all
# Format
format:
cargo +nightly fmt --all
# Test
test: check format
cargo test --all
cargo msrv verify
cargo deny check
# Build
build: test
cargo build --release
# Re-run tests on any change
develop: format
bacon test
# Run the program with args
run *FLAGS:
cargo run -- {{ FLAGS }}
# Run the program with args - in release mode
run-release *FLAGS:
cargo run --release -- {{ FLAGS }}
# Publish the crate
publish: test
cargo publish
# Benchmarks
bench *ARGS:
cargo bench {{ ARGS }}
# Benchmarks with memory stats
bench-mem *ARGS:
cargo bench --features="bench_mem" {{ ARGS }}