chore: Add rustfmt config
This commit is contained in:
parent
93f3cce9e4
commit
c589605407
2 changed files with 12 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ Displays different C-ITS receive-only use cases for cheap.
|
||||||
### Toolchain Installation
|
### Toolchain Installation
|
||||||
Install the toolchain, targe and tools like this:
|
Install the toolchain, targe and tools like this:
|
||||||
|
|
||||||
```
|
```shell
|
||||||
rustup toolchain install nightly --component rust-src
|
rustup toolchain install nightly --component rust-src
|
||||||
rustup target add riscv32imac-unknown-none-elf
|
rustup target add riscv32imac-unknown-none-elf
|
||||||
|
|
||||||
|
|
@ -18,6 +18,11 @@ cargo install espflash --locked
|
||||||
|
|
||||||
(Project was setup using esp-generate with the options `--chip esp32c5 -o esp32c5-wroom-1-psram -o alloc -o log -o unstable-hal -o wifi -o esp-backtrace -o embassy`.)
|
(Project was setup using esp-generate with the options `--chip esp32c5 -o esp32c5-wroom-1-psram -o alloc -o log -o unstable-hal -o wifi -o esp-backtrace -o embassy`.)
|
||||||
|
|
||||||
|
To use the proper rustfmt features, enable the nightly toolchain:
|
||||||
|
```shell
|
||||||
|
rustup component add --toolchain nightly rustfmt
|
||||||
|
```
|
||||||
|
|
||||||
### Build and Flash
|
### Build and Flash
|
||||||
Connect your ESP32-C5 and run:
|
Connect your ESP32-C5 and run:
|
||||||
|
|
||||||
|
|
|
||||||
6
rustfmt.toml
Normal file
6
rustfmt.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
unstable_features = true
|
||||||
|
format_code_in_doc_comments = true
|
||||||
|
|
||||||
|
group_imports = "StdExternalCrate"
|
||||||
|
imports_granularity = "Module"
|
||||||
|
imports_layout = "HorizontalVertical"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue