Skip to content

Commit

Permalink
docs: Use release profile
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioGasquez committed Apr 19, 2024
1 parent eb301aa commit 713cfec
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion book/src/03_2_blinky.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cargo doc --open
`intro/blinky/examples/blinky.rs` contains the solution. You can run it with the following command:

```shell
cargo run --example blinky
cargo run --release --example blinky
```

## Exercise
Expand Down
2 changes: 1 addition & 1 deletion book/src/03_3_button.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ cargo doc --open
`intro/button/examples/button.rs` contains the solution. You can run it with the following command:

```shell
cargo run --example button
cargo run --release --example button
```

## Exercise
Expand Down
2 changes: 1 addition & 1 deletion book/src/03_4_interrupt.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ cargo doc --open
`intro/button-interrupt/examples/button-interrupt.rs` contains the solution. You can run it with the following command:

```shell
cargo run --example button-interrupt
cargo run --release --example button-interrupt
```

## Exercise
Expand Down
4 changes: 2 additions & 2 deletions book/src/04_1_stack_overflow_protection.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ We cannot do that because on our chips there is the flash/ext-mem cache at the s
> 🔎 esp-hal also supports [stack smashing protection](https://doc.rust-lang.org/rustc/exploit-mitigations.html#stack-smashing-protection) for all targets which in our case can also double as a simple stack overflow detector. While the overhead is very small, there is some run-time cost involved.
>
> To enable it you need a nightly compiler and add `"-Z", "stack-protector=all",` to `rustflags` in `.cargo/config.toml`
> To enable it you need a nightly compiler and add `"-Z", "stack-protector=all",` to `rustflags` in `.cargo/config.toml`
Some of our chips (including ESP32-C3) include the debug-assist peripheral.

Expand Down Expand Up @@ -62,7 +62,7 @@ In this case it's easy to guess the cause of this behavior however in a real wor
`advanced/stack-overflow-detection/examples/stack-overflow-detection.rs` contains the solution. You can run it with the following command:

```shell
cargo run --example stack-overflow-detection
cargo run --release --example stack-overflow-detection
```

## Exercise
Expand Down

0 comments on commit 713cfec

Please sign in to comment.