aboutsummaryrefslogtreecommitdiff
path: root/docs/modules
diff options
context:
space:
mode:
authorJames Munns <[email protected]>2023-12-07 14:27:09 +0100
committerGitHub <[email protected]>2023-12-07 14:27:09 +0100
commit8fa5a6b282792d7f9238964acc2916452b494965 (patch)
treeaf646c5fdc4c83472cce7bc437cb37264bc20f21 /docs/modules
parent83138ce68e506692aabd825eae39016ddb8fd2c4 (diff)
Tweak FAQ size profile suggestions
If we want the smallest binary, we probably want codegen-units = 1, and disable incremental builds.
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 df3f66658..2ec438913 100644
--- a/docs/modules/ROOT/pages/faq.adoc
+++ b/docs/modules/ROOT/pages/faq.adoc
@@ -47,7 +47,8 @@ The first step to managing your binary size is to set up your link:https://doc.r
47debug = false 47debug = false
48lto = true 48lto = true
49opt-level = "s" 49opt-level = "s"
50incremental = true 50incremental = false
51codegen-units = 1
51---- 52----
52 53
53All of these flags are elaborated on in the Rust Book page linked above. 54All of these flags are elaborated on in the Rust Book page linked above.