-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
76 lines (64 loc) · 1.46 KB
/
justfile
File metadata and controls
76 lines (64 loc) · 1.46 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# List available recipes
default:
@just --list
alias b := build
alias t := test
alias l := lint
# Run cargo doc and open result in browser
[group('build')]
doc:
cargo doc --all-features --no-deps --open
# Run cargo build
[group('build')]
build:
cargo build
# Run cargo clean
[group('build')]
clean:
cargo clean
# Install cargo tools used in package maintenance
[group('build')]
install_dev_tools:
echo "Installing optional tools for depelopment."
cargo install --locked release-plz
cargo install --locked cargo-audit
cargo install --locked cargo-outdated
cargo install --locked cargo-llvm-cov
cargo install --locked cargo-expand
# Format source code with cargo fmt
[group('lint')]
fmt:
cargo fmt --all
# Lint source code CI linter
[group('lint')]
lint:
cargo check
cargo clippy --all -- -D warnings
# Lint source code with strict linter
[group('lint')]
pedantic:
cargo clippy -- -W clippy::pedantic
# Run cargo audit to vet dependencies
[group('lint')]
audit:
cargo audit
# Run cargo audit to vet dependencies
[group('lint')]
outdated:
cargo outdated
set positional-arguments
# Run tests for all features
[group('test')]
test args='':
cargo test --all-features $1 -- --show-output
# Run llvm-cov code coverage tool and open report in browser
[group('test')]
cov:
cargo llvm-cov --open
# Run same testing commands as on CI server
[group('test')]
ci:
cargo clippy --all -- -D warnings
cargo build
cargo test --all-features
cargo test --examples