Skip to content

Commit

Permalink
Update faq.adoc
Browse files Browse the repository at this point in the history
Don't suggest people disable debuginfo, and explain why
  • Loading branch information
jamesmunns authored Jan 23, 2024
1 parent c1ba008 commit 40e9fc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/modules/ROOT/pages/faq.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ The first step to managing your binary size is to set up your link:https://doc.r
[source,toml]
----
[profile.release]
debug = false
lto = true
opt-level = "s"
incremental = false
codegen-units = 1
# note: debug = true is okay - debuginfo isn't flashed to the device!
debug = true
----

All of these flags are elaborated on in the Rust Book page linked above.
Expand Down

0 comments on commit 40e9fc3

Please sign in to comment.