From b83664dfce1d472d7fb31d4be2b945b5cd08ca84 Mon Sep 17 00:00:00 2001 From: vvm Date: Sat, 24 Jun 2023 02:32:57 +0400 Subject: [PATCH] add build optimizations --- src-tauri/Cargo.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index bfa310a8..30ad48de 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -23,4 +23,10 @@ tauri = { version = "1.4.0", features = [] } # this feature is used for production builds or when `devPath` points to the filesystem and the built-in dev server is disabled. # If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes. # DO NOT REMOVE!! -custom-protocol = [ "tauri/custom-protocol" ] +custom-protocol = ["tauri/custom-protocol"] + +[profile.release] +panic = "abort" +codegen-units = 1 +lto = true +opt-level = "s"