-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJustfile
64 lines (55 loc) · 1.95 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
[private]
default:
@just --list --unsorted
test-generator:
# TODO: allow override of output file name
-SVD_PATH=$PWD/data/svd/test64.svd OUTPUT_PATH=$PWD/temp/ cargo build --release
mv $PWD/temp/register_selftest.rs $PWD/temp/tests64.rs
-SVD_PATH=$PWD/data/svd/test32.svd OUTPUT_PATH=$PWD/temp/ cargo build --release
mv $PWD/temp/register_selftest.rs $PWD/temp/tests32.rs
-SVD_PATH=$PWD/data/svd/test16.svd OUTPUT_PATH=$PWD/temp/ cargo build --release
mv $PWD/temp/register_selftest.rs $PWD/temp/tests16.rs
-SVD_PATH=$PWD/data/svd/test8.svd OUTPUT_PATH=$PWD/temp/ cargo build --release
mv $PWD/temp/register_selftest.rs $PWD/temp/tests8.rs
build:
cargo build --example=run_every_test
build-release:
cargo build --example=run_every_test --release
check:
cargo check --example=run_every_test
run:
cargo run --example=run_every_test
test:
cargo test -p keelhaul
doc:
cargo doc --no-deps
doc-open:
cargo doc --no-deps --open
# Strict clippy.
clippy:
cargo clippy --all -- \
-W clippy::all \
-W clippy::pedantic \
-W clippy::restriction \
-W clippy::nursery \
-W clippy::cargo \
-D warnings \
-A clippy::implicit_return \
-A clippy::arithmetic_side_effects \
-A clippy::integer_arithmetic \
-A clippy::panic \
-A clippy::print_stdout \
-A clippy::blanket_clippy_restriction_lints \
-A clippy::cargo_common_metadata \
-A clippy::single-char-lifetime-names \
-A clippy::unwrap_used \
-A clippy::expect_used \
-A clippy::option_if_let_else \
-A clippy::unnecessary_safety_comment \
-A clippy::panic_in_result_fn \
-A clippy::indexing_slicing \
-A clippy::pattern_type_mismatch \
-A clippy::or_fun_call \
-A clippy::std_instead_of_core \
-A clippy::wildcard_enum_match_arm \
-A clippy::redundant_closure_for_method_calls