From 3e305baf876e5ec9e7751433aaa67e944ec766f0 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 17 Mar 2024 14:55:16 +0100 Subject: [PATCH] optimize release builds for size --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 6a40459..a8885fb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,3 +15,6 @@ opt-level = 1 # Enable high optimizations for dependencies (incl. Bevy), but not for our code: [profile.dev.package."*"] opt-level = 3 + +[profile.release] +opt-level = 'z'