diff --git a/apps/ai-game-creator-shell/src-tauri/Cargo.toml b/apps/ai-game-creator-shell/src-tauri/Cargo.toml index 7aa0e1cb4..b1b08062c 100644 --- a/apps/ai-game-creator-shell/src-tauri/Cargo.toml +++ b/apps/ai-game-creator-shell/src-tauri/Cargo.toml @@ -74,6 +74,14 @@ codegen-units = 256 lto = "off" incremental = true +# Runner 启动阶段会对当前 Debug 可执行文件计算 SHA-256。仅优化密码学依赖, +# 保持业务代码的 Debug 编译速度,同时避免整份 Debug 构建因未优化 hash 热点而阻塞启动。 +[profile.dev.package.sha2] +opt-level = 3 + +[profile.dev.package.digest] +opt-level = 3 + [profile.test] opt-level = 0 debug = 1