From 4cdbf592ac1293b849776a5710f9e79867d9dac0 Mon Sep 17 00:00:00 2001 From: Alexander Zaitsev Date: Thu, 20 Feb 2025 15:15:59 +0300 Subject: [PATCH] feat: enable LTO and codegen-units = 1 optimizations (#2) --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index b385b8c..cc6500a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,3 +37,7 @@ syntect = { version = "5.2.0", default-features = false, features = [ ] } textwrap = "0.16.1" tokio = { version = "1.43.0", features = ["full"] } + +[profile.release] +codegen-units = 1 +lto = true