From 66637be700f3c50f2d00a7445bc1be52e1115f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Fri, 25 Feb 2022 17:24:20 +0900 Subject: [PATCH] Add an optimised release profile --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 36dcb09f..94b8f3f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,3 +20,10 @@ split-debuginfo = "unpacked" [profile.release] lto = "thin" # debug = true + +[profile.opt] +inherits = "release" +lto = "fat" +codegen-units = 1 +# strip = "debuginfo" # TODO: or strip = true +opt-level = 3