aboutsummaryrefslogtreecommitdiff
path: root/docs/modules
diff options
context:
space:
mode:
authorJames Munns <[email protected]>2024-01-23 12:06:28 +0100
committerGitHub <[email protected]>2024-01-23 12:06:28 +0100
commit40e9fc36dc3af75a9625413504d4e90a0d5f35d9 (patch)
treea6fbdcc0e112e9e4564ae90044108c026c7ec2ef /docs/modules
parentc1ba008be457cdc8fe083fe36e380aa60dd784e2 (diff)
Update faq.adoc
Don't suggest people disable debuginfo, and explain why
Diffstat (limited to 'docs/modules')
-rw-r--r--docs/modules/ROOT/pages/faq.adoc3
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]
47debug = false
48lto = true 47lto = true
49opt-level = "s" 48opt-level = "s"
50incremental = false 49incremental = false
51codegen-units = 1 50codegen-units = 1
51# note: debug = true is okay - debuginfo isn't flashed to the device!
52debug = true
52---- 53----
53 54
54All of these flags are elaborated on in the Rust Book page linked above. 55All of these flags are elaborated on in the Rust Book page linked above.