浏览代码

chore(example) add release flags

Lucas Nogueira 5 年之前
父节点
当前提交
a3aa532ac2
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      tauri/examples/communication/src-tauri/Cargo.toml

+ 7 - 0
tauri/examples/communication/src-tauri/Cargo.toml

@@ -36,3 +36,10 @@ no-server = [ "tauri/no-server" ]
 [[bin]]
 [[bin]]
 name = "app"
 name = "app"
 path = "src/main.rs"
 path = "src/main.rs"
+
+[profile.release]
+panic = "abort"
+codegen-units = 1
+lto = true
+incremental = false
+opt-level = "z"