Skip to content

Commit 506840e

Browse files
bors[bot]cleichner
andauthored
Merge #296
296: Update book to track quickstart changes r=adamgreig a=cleichner - .cargo/config -> .cargo/config.toml Co-authored-by: Chas Leichner <chas@google.com>
2 parents cbec77f + b1817f8 commit 506840e

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

src/start/hardware.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ $ cargo generate --git https://github.com/rust-embedded/cortex-m-quickstart
4949
$ cd app
5050
```
5151

52-
Step number one is to set a default compilation target in `.cargo/config`.
52+
Step number one is to set a default compilation target in `.cargo/config.toml`.
5353

5454
``` console
55-
tail -n5 .cargo/config
55+
tail -n5 .cargo/config.toml
5656
```
5757

5858
``` toml
@@ -320,10 +320,10 @@ OpenOCD, enable semihosting, load the program and start the process.
320320

321321
Alternatively, you can turn `<gdb> -x openocd.gdb` into a custom runner to make
322322
`cargo run` build a program *and* start a GDB session. This runner is included
323-
in `.cargo/config` but it's commented out.
323+
in `.cargo/config.toml` but it's commented out.
324324

325325
``` console
326-
head -n10 .cargo/config
326+
head -n10 .cargo/config.toml
327327
```
328328

329329
``` toml

src/start/qemu.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ bit in the function signature) to ensure at compile time that'll be the case.
137137

138138
The next step is to *cross* compile the program for the Cortex-M3 architecture.
139139
That's as simple as running `cargo build --target $TRIPLE` if you know what the
140-
compilation target (`$TRIPLE`) should be. Luckily, the `.cargo/config` in the
140+
compilation target (`$TRIPLE`) should be. Luckily, the `.cargo/config.toml` in the
141141
template has the answer:
142142

143143
```console
144-
tail -n6 .cargo/config
144+
tail -n6 .cargo/config.toml
145145
```
146146

147147
```toml
@@ -161,7 +161,7 @@ if you haven't done it yet:
161161
rustup target add thumbv7m-none-eabi
162162
```
163163
Since the `thumbv7m-none-eabi` compilation target has been set as the default in
164-
your `.cargo/config` file, the two commands below do the same:
164+
your `.cargo/config.toml` file, the two commands below do the same:
165165

166166
```console
167167
cargo build --target thumbv7m-none-eabi
@@ -401,11 +401,11 @@ Let's break down that QEMU command:
401401
machine.
402402

403403
Typing out that long QEMU command is too much work! We can set a custom runner
404-
to simplify the process. `.cargo/config` has a commented out runner that invokes
404+
to simplify the process. `.cargo/config.toml` has a commented out runner that invokes
405405
QEMU; let's uncomment it:
406406

407407
```console
408-
head -n3 .cargo/config
408+
head -n3 .cargo/config.toml
409409
```
410410

411411
```toml

src/start/semihosting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ semihosting is enabled
4848
QEMU understands semihosting operations so the above program will also work with
4949
`qemu-system-arm` without having to start a debug session. Note that you'll
5050
need to pass the `-semihosting-config` flag to QEMU to enable semihosting
51-
support; these flags are already included in the `.cargo/config` file of the
51+
support; these flags are already included in the `.cargo/config.toml` file of the
5252
template.
5353

5454
``` text

src/unsorted/speed-vs-size.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,10 @@ closures).
148148
When optimizing for size you may want to try increasing the inline threshold to
149149
see if that has any effect on the binary size. The recommended way to change the
150150
inline threshold is to append the `-C inline-threshold` flag to the other
151-
rustflags in `.cargo/config`.
151+
rustflags in `.cargo/config.toml`.
152152

153153
``` toml
154-
# .cargo/config
154+
# .cargo/config.toml
155155
# this assumes that you are using the cortex-m-quickstart template
156156
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
157157
rustflags = [

0 commit comments

Comments
 (0)