From 08ef839464167a79817bb4c7bf4ed58dc668d4fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Thu, 16 Mar 2023 10:55:01 +0100 Subject: [PATCH] misc: Enable LTO for release builds --- Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index d606327d..f41789a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,8 @@ rust-version = "1.65" [profile.release] debug = true +lto = true +codegen-units = 1 [profile.dev.package."*"] opt-level = 3