# Enable optimization in debug mode [profile.dev] opt-level = 2 lto = "thin" # Enable high optimizations for dependencies (incl. Bevy), but not for our code: [profile.dev.package."*"] opt-level = 3 [profile.release] lto = true # Enable fat LTO codegen-units = 1 # Reduce number of codegen units for better optimization