From 20c9d2db541b2c3f445f0f6cd0ae36ab5b195c12 Mon Sep 17 00:00:00 2001 From: Volodymyr Yavdoshenko Date: Sat, 17 Jan 2026 07:56:02 +0200 Subject: [PATCH] fix: added lto optimisation for release build (#5) Closes: https://github.com/vyavdoshenko/red/issues/4 --- red/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/red/Cargo.toml b/red/Cargo.toml index 31cdfa6..cda9790 100644 --- a/red/Cargo.toml +++ b/red/Cargo.toml @@ -40,3 +40,7 @@ assert_cmd = "2.0" predicates = "3.1" tempfile = "3.10" assert_fs = "1.1" + +[profile.release] +lto = true +codegen-units = 1