Specify a default target so cargo doc works as expected

This commit is contained in:
Jake Goulding
2020-07-25 14:29:28 -04:00
parent f725718840
commit 7a9a9fbe48
2 changed files with 3 additions and 1 deletions

2
.cargo/config Normal file
View File

@@ -0,0 +1,2 @@
[build]
target = "avr-atmega328p.json"

View File

@@ -8,7 +8,7 @@ all: ${HEX}
.PHONY: ${ELF}
${ELF}:
RUSTFLAGS=${RUSTFLAGS} cargo build -Z build-std=core --target avr-atmega328p.json --release
RUSTFLAGS=${RUSTFLAGS} cargo build -Z build-std=core --release
# Download the ELF to the board
.PHONY: program