diff options
| author | James Munns <[email protected]> | 2024-01-23 12:06:28 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-23 12:06:28 +0100 |
| commit | 40e9fc36dc3af75a9625413504d4e90a0d5f35d9 (patch) | |
| tree | a6fbdcc0e112e9e4564ae90044108c026c7ec2ef | |
| parent | c1ba008be457cdc8fe083fe36e380aa60dd784e2 (diff) | |
Update faq.adoc
Don't suggest people disable debuginfo, and explain why
| -rw-r--r-- | docs/modules/ROOT/pages/faq.adoc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/modules/ROOT/pages/faq.adoc b/docs/modules/ROOT/pages/faq.adoc index 147f119b0..bf061d978 100644 --- a/docs/modules/ROOT/pages/faq.adoc +++ b/docs/modules/ROOT/pages/faq.adoc | |||
| @@ -44,11 +44,12 @@ The first step to managing your binary size is to set up your link:https://doc.r | |||
| 44 | [source,toml] | 44 | [source,toml] |
| 45 | ---- | 45 | ---- |
| 46 | [profile.release] | 46 | [profile.release] |
| 47 | debug = false | ||
| 48 | lto = true | 47 | lto = true |
| 49 | opt-level = "s" | 48 | opt-level = "s" |
| 50 | incremental = false | 49 | incremental = false |
| 51 | codegen-units = 1 | 50 | codegen-units = 1 |
| 51 | # note: debug = true is okay - debuginfo isn't flashed to the device! | ||
| 52 | debug = true | ||
| 52 | ---- | 53 | ---- |
| 53 | 54 | ||
| 54 | All of these flags are elaborated on in the Rust Book page linked above. | 55 | All of these flags are elaborated on in the Rust Book page linked above. |
