From 9f3979355ef3db3492b289935390df2d0ed929df Mon Sep 17 00:00:00 2001 From: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com> Date: Sun, 20 Oct 2024 11:58:31 +0800 Subject: [PATCH] Enable `lto` for `release` profile This was removed in fe271ee10aa80c92b91f3f9f7967e56aa0ae4197, looks like for some compiler issues with SFML, but we don't have that anymore, and this will give us some performance and size benefits. Signed-off-by: Amjad Alsharafi <26300843+Amjad50@users.noreply.github.com> --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index e02e623..dd0ee6b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ default-members = ["plastic_ui"] opt-level = 2 [profile.release] +lto = true opt-level = 3 [profile.ci]