-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
59 lines (45 loc) · 911 Bytes
/
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
# List recipes
list:
@just --list --unsorted
# A convenient recipe for development: test and format
dev: test format
# dev + clippy; good to run before committing changes
all: dev clippy
# cargo watch
watch *cmd='check':
cargo watch -c -x '{{ cmd }}'
# cargo check
check:
cargo check
# cargo clean
clean:
cargo clean
# Run tests
test:
cargo test
# Run espclient (e.g.: just run --help)
run *args='':
cargo run -- {{ args }}
# Format source code
format:
cargo fmt
# Run clippy
clippy:
cargo clippy --all-targets -- -D warnings
# Build release
release:
cargo build --release
# Install locally
install: release
cargo install --path .
# (cargo install --locked cargo-outdated)
# Show outdated dependencies
outdated:
cargo outdated --root-deps-only
# (cargo install --locked cargo-udeps)
# Find unused dependencies
udeps:
cargo +nightly udeps
# cargo update
update:
cargo update