From 8fa5a6b282792d7f9238964acc2916452b494965 Mon Sep 17 00:00:00 2001 From: James Munns Date: Thu, 7 Dec 2023 14:27:09 +0100 Subject: [PATCH] Tweak FAQ size profile suggestions If we want the smallest binary, we probably want codegen-units = 1, and disable incremental builds. --- docs/modules/ROOT/pages/faq.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 debug = false lto = true opt-level = "s" -incremental = true +incremental = false +codegen-units = 1 ---- All of these flags are elaborated on in the Rust Book page linked above.