660: Clarify r=AfoHT a=01joja

I made 3 suggested changes

- `.cargo/config` -> `.cargo/config.toml`. Now extensions for vs code recognizes that it is a toml-file.
- Moved a note about how to configure target in cargo.toml to by-example.md from app_init.md.
- changed all occurrences of  `.cargo/config`  to `.cargo/config.toml` in the ru and eng version of the book.


Co-authored-by: Jonas Jacobsson <01joja@gmail.com>
This commit is contained in:
bors[bot] 2022-09-28 18:49:50 +00:00 committed by GitHub
commit a79cc08380
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View file

@ -30,3 +30,9 @@ Yields this output:
``` console
{{#include ../../../ci/expected/locals.run}}
```
> **NOTE**: You can choose target device by passing a target
> triple to cargo (e.g. `cargo run --example init --target thumbv7m-none-eabi`) or
> configure a default target in `.cargo/config.toml`.
>
> For running the examples, we use a Cortex M3 emulated in QEMU, so the target is `thumbv7m-none-eabi`.

View file

@ -28,9 +28,3 @@ Running the example will print `init` to the console and then exit the QEMU proc
$ cargo run --target thumbv7m-none-eabi --example init
{{#include ../../../../ci/expected/init.run}}
```
> **NOTE**: You can choose target device by passing a target
> triple to cargo (e.g. `cargo run --example init --target thumbv7m-none-eabi`) or
> configure a default target in `.cargo/config.toml`.
>
> For running the examples, we use a Cortex M3 emulated in QEMU, so the target is `thumbv7m-none-eabi`.

View file

@ -78,7 +78,7 @@ $ cargo add panic-semihosting
5. Соберите его, загрузите в микроконтроллер и запустите.
``` console
$ # ПРИМЕЧАНИЕ: Я раскомментировал опцию `runner` в `.cargo/config`
$ # ПРИМЕЧАНИЕ: Я раскомментировал опцию `runner` в `.cargo/config.toml`
$ cargo run
{{#include ../../../../ci/expected/init.run}}
```