From 03e679b634b8e70b34cb20069a611f028de84476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Lecrenier?= Date: Tue, 16 Aug 2022 20:50:08 +0200 Subject: [PATCH] Make binaries faster on release profile through better compile options --- Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 506fd3dc3..f0fc59499 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,6 +8,8 @@ opt-level = 3 [profile.release] debug = true +codegen-units = 1 +lto = "thin" # Make sure that the build scripts and proc-macros are compiled with # all the optimizations. It speeds up the zip crate that we use in the build.rs.