M Makefile => Makefile +1 -1
@@ 39,7 39,7 @@ src/devices/%/mod.rs: src/devices/%/mod.full.rs
@RUST_LOG=WARN form -i $< -o $(@D) >/dev/null
@rm $<
@mv $(@D)/lib.rs $@
- @rustfmt $@
+ @RUSTUP_TOOLCHAIN=nightly rustfmt $@
@# Remove the `extern crate` lines
@sed -i'' -e "1,7d" $@
@# Make DEVICE_PERIPHERALS visible crate-wide
M README.md => README.md +1 -1
@@ 3,7 3,7 @@ avr-device
Auto-generated wrappers around registers for avr chips.
## Usage
-You need to have [atdf2svd](https://github.com/Rahix/atdf2svd), [svd2rust](https://github.com/rust-embedded/svd2rust), [form](https://github.com/djmcgill/form), [rustfmt](https://github.com/rust-lang/rustfmt) and [PyYAML](https://github.com/yaml/pyyaml) installed:
+You need to have [atdf2svd](https://github.com/Rahix/atdf2svd), [svd2rust](https://github.com/rust-embedded/svd2rust), [form](https://github.com/djmcgill/form), [rustfmt](https://github.com/rust-lang/rustfmt)(for the *nightly* toolchain) and [PyYAML](https://github.com/yaml/pyyaml) installed:
```bash
rustup component add rustfmt
cargo install form
M build.rs => build.rs +1 -1
@@ 11,7 11,7 @@ avr-device: Running `make` resulted in a failure.
- atdf2svd
- svd2rust
- form
- - rustfmt (for the toolchain you are using!)
+ - rustfmt (for the nightly toolchain!)
- PyYAML
For more info, look at README file: