From 9863f538ca1780cc6e8da4f07854ce6410156d4a Mon Sep 17 00:00:00 2001 From: Aliaksandr <42497203+AlexCannonball@users.noreply.github.com> Date: Sat, 16 May 2026 09:02:37 +0000 Subject: [PATCH] perf: enable aggressive release build optimizations --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 5df4c8a..35e45a2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,3 +34,8 @@ const_format = "0.2" [dev-dependencies] insta = { version = "1.47", features = ["yaml", "redactions"] } + +[profile.release] +strip = "debuginfo" # Removes heavy debug data but keeps function names for panic logs +lto = true # Enables Link-Time Optimization for cross-crate improvements +codegen-units = 1 # Maximizes LLVM optimization passes