-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJustfile
More file actions
33 lines (26 loc) · 727 Bytes
/
Justfile
File metadata and controls
33 lines (26 loc) · 727 Bytes
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
test_features := 'drone-cortexm/std drone-stm32-map/std smartoris-i2c/std'
target := `drone print target 2>/dev/null || echo ""`
# Install dependencies
deps:
type cargo-readme >/dev/null || cargo +stable install cargo-readme
type drone >/dev/null || cargo install drone
rustup target add $(drone print target)
# Reformat the source code
fmt:
cargo fmt
# Check the source code for mistakes
lint:
cargo clippy
# Build the documentation
doc:
cargo doc
# Open the documentation in a browser
doc-open: doc
cargo doc --open
# Run the tests
test:
cargo test --features "{{test_features}} std" \
--target=$(rustc --version --verbose | sed -n '/host/{s/.*: //;p}')
# Update README.md
readme:
cargo readme -o README.md