From 6c84b01bf9293c555c52bdb35650e7206593e958 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Sat, 28 Jun 2025 22:37:07 +0200 Subject: [PATCH] Optimize release build --- Cargo.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index b429df9..7e1939b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,20 @@ version = "0.1.0" edition = "2021" +[profile.release] +opt-level = 3 +debug = false +strip = true +lto = true +codegen-units = 1 +panic = 'abort' + +[profile.profiling] +inherits = "release" +debug = true +strip = false + + [dependencies] once_cell = "1.21.1"