From d0ac6d3c6d87bfb6df751240e88e021fc9d59759 Mon Sep 17 00:00:00 2001 From: Alexander Zaitsev Date: Sat, 4 Jan 2025 05:22:00 +0300 Subject: [PATCH] feat: enable LTO and codegen-units = 1 optimization --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 04e3953b..744e0595 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,3 +17,7 @@ members = [ "library/streamhub", "library/common", ] + +[profile.release] +codegen-units = 1 +lto = true