~ruther/avr-device

90e0982fda840be2b882a19fab08c99f03136f75 — Rahix 5 years ago b11ae98
Use nightly rustfmt

Signed-off-by: Rahix <rahix@rahix.de>
3 files changed, 3 insertions(+), 3 deletions(-)

M Makefile
M README.md
M build.rs
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:

Do not follow this link