From af9d1cf7762ddcf45b94d7e18d3391c16c30396a Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 15 May 2020 21:27:51 -0400 Subject: [PATCH] LTO in release mode by default, which is really critical for C libs --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 511682e28..2ff627e28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,3 +9,7 @@ members = [ # Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it [profile.dev] opt-level = 1 + +[profile.release] +opt-level = 3 +lto = true -- 2.39.5