Skip to content

Commit 0b52342

Browse files
committed
Add Justfile
1 parent 7a45ba2 commit 0b52342

File tree

7 files changed

+22
-30
lines changed

7 files changed

+22
-30
lines changed

Justfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
build_target := 'thumbv7em-none-eabihf'
2+
features := 'stm32l4s7'
3+
4+
# Check with clippy.
5+
clippy:
6+
cargo clippy \
7+
--package drone-stm32-map-svd
8+
cargo clippy --target {{build_target}} --features {{features}} \
9+
--all --exclude drone-stm32-map-svd
10+
11+
# Generate documentation.
12+
doc:
13+
cargo doc \
14+
--package drone-stm32-map-svd
15+
cargo doc --target {{build_target}} --features {{features}} \
16+
--all --exclude drone-stm32-map-svd
17+
18+
# Generate README.md from src/lib.rs.
19+
readme:
20+
cargo readme -o README.md

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2019-05-20
1+
nightly-2019-07-16

rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
comment_width = 80
22
edition = "2018"
3-
format_doc_comments = true
3+
format_code_in_doc_comments = true
44
format_strings = true
55
max_width = 80
66
merge_imports = true

scripts/_env.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

scripts/clippy.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

scripts/doc.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

scripts/readme.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)