-
Notifications
You must be signed in to change notification settings - Fork 0
/
Justfile
34 lines (27 loc) · 864 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
cortexm_core := 'cortexm4f_r0p1'
stm32_mcu := 'stm32f401'
export DRONE_RUSTFLAGS := '--cfg cortexm_core="' + cortexm_core + '" ' + '--cfg stm32_mcu="' + stm32_mcu + '"'
features := ''
# Install dependencies
deps:
rustup component add clippy
rustup component add rustfmt
type cargo-readme >/dev/null || cargo +stable install cargo-readme
# Reformat the source code
fmt:
cargo fmt
# Check the source code for mistakes
lint:
cargo clippy --features "{{features}}"
# Build the documentation
doc:
cargo doc --features "{{features}}"
# Open the documentation in a browser
doc-open: doc
cargo doc --features "{{features}}" --open
# Run the tests
test:
drone env -- cargo test --features "{{features}} std drone-cortexm/std drone-stm32-map/std drone-stm32-map/gpio smartoris-i2c/std smartoris-exti/std"
# Update README.md
readme:
cargo readme -o README.md