From 1d5b1739bea10e4bcca4c448e93795d242fa5673 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Mon, 27 Nov 2023 09:29:56 +0000 Subject: [PATCH] chore: enable link-time-optimization for release builds --- Cargo.toml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 66cbbe9..3269df8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,12 +3,13 @@ name = "aspiration" version = "0.1.0" edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +# Squeeze out more performance for `release` builds - very slow compile times +[profile.release] +lto = "thin" # Enable a small amount of optimization in debug mode [profile.dev] opt-level = 1 - # Enable high optimizations for dependencies (incl. Bevy), but not for our code: [profile.dev.package."*"] opt-level = 3