-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
65 lines (54 loc) · 1.75 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
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
# run the test suite
[group("code coverage")]
test profile='default':
cargo llvm-cov --no-report \
nextest \
--manifest-path crates/rf24-rs/Cargo.toml \
--lib --tests --color always --profile {{ profile }}
# Clear previous test build artifacts
[group("code coverage")]
test-clean:
cargo llvm-cov clean
# pass "--open" to this recipe's args to load HTML in your browser
# generate pretty coverage report
[group("code coverage")]
pretty-cov *args='':
cargo llvm-cov report --json --output-path coverage.json
llvm-cov-pretty coverage.json {{ args }}
# pass "--open" to this recipe's args to load HTML in your browser
# generate detailed coverage report
[group("code coverage")]
llvm-cov *args='':
cargo llvm-cov report --html {{ args }}
# generate lcov.info
[group("code coverage")]
lcov:
cargo llvm-cov report --lcov --output-path lcov.info
# pass "--open" to this recipe's "open" arg to load HTML in your browser
# serve mkdocs
[group("docs")]
docs open='':
mkdocs serve --config-file docs/mkdocs.yml {{ open }}
# build mkdocs
[group("docs")]
docs-build:
mkdocs build --config-file docs/mkdocs.yml
# pass "--open" to this recipe's "open" arg to load HTML in your browser
# rust API docs
[group("docs")]
docs-rs open='':
cargo doc --no-deps --lib --manifest-path crates/rf24-rs/Cargo.toml {{ open }}
# run clippy and rustfmt (on library only)
lint:
cargo clippy --allow-staged --allow-dirty --fix
cargo fmt
# run clippy and rustfmt (on examples/rust only)
lint-examples:
cargo clippy \
--manifest-path examples/rust/Cargo.toml \
--features linux \
--allow-staged \
--allow-dirty \
--fix
cargo fmt --manifest-path examples/rust/Cargo.toml