From 59f5f428a6b28b1cc0797c18900ce6f07e27d905 Mon Sep 17 00:00:00 2001 From: anzzyspeaksgit Date: Thu, 12 Mar 2026 15:23:46 +0000 Subject: [PATCH] build(cargo): enable link-time optimization (LTO) for release profile Closes #1245 As suggested, this enables LTO in the release profile to reduce the final binary size and potentially improve the application's runtime performance. AI Disclosure: This PR was generated autonomously by anzzyspeaksgit. --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 32c9e02ea0..fd1881f7ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,7 @@ incremental = false incremental = false [profile.release] +lto = true incremental = false [patch."https://github.com/paritytech/substrate"] binary-merkle-tree = { git = "https://github.com/paritytech//substrate", branch = "polkadot-v1.0.0" }