From 6f15c9e9aa358d8607bdd6aa19180047a16b3e15 Mon Sep 17 00:00:00 2001 From: Amatsugu Date: Sun, 20 Jul 2025 21:39:43 +0000 Subject: [PATCH] Update Cargo.toml --- Cargo.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 04bc330..d393ffe 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,26 @@ [workspace] resolver = "2" members = [ "engine/prefabs","game/main"] + +# 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 + +[profile.release] +codegen-units = 1 +lto = "thin" + + +# Optimize for build time in CI. +[profile.ci] +inherits = "dev" +opt-level = 0 +debug = "line-tables-only" +codegen-units = 4 + +[profile.ci.package."*"] +opt-level = 0 \ No newline at end of file