From 87d623cc6d9337ca7ce1c5c414033029960b9540 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Wed, 6 Nov 2024 15:31:04 +0100 Subject: [PATCH] Set release flags for 0.19.6 (#5168) --- Cargo.toml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 79cbd411a..6001b2199 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,11 +24,12 @@ doctest = false [lints] workspace = true +# See https://github.com/johnthagen/min-sized-rust for additional optimizations [profile.release] debug = 0 -lto = "thin" -strip = true # Automatically strip symbols from the binary. -opt-level = "z" # Optimize for size. +lto = "fat" +opt-level = 3 # Optimize for speed, not size. +codegen-units = 1 # Reduce parallel code generation. # This profile significantly speeds up build time. If debug info is needed you can comment the line # out temporarily, but make sure to leave this in the main branch.