浏览代码

chore: profile release

GyDi 3 年之前
父节点
当前提交
6ea567742b
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src-tauri/Cargo.toml

+ 6 - 0
src-tauri/Cargo.toml

@@ -42,3 +42,9 @@ winreg = { version = "0.10", features = ["transactions"] }
 default = [ "custom-protocol" ]
 custom-protocol = [ "tauri/custom-protocol" ]
 verge-dev = []
+
+[profile.release]
+panic = "abort"
+codegen-units = 1
+lto = true
+opt-level = "s"