From 73274a895f0e29c0f655fe39b0ea5dc57bd642be Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Thu, 9 Dec 2021 18:26:44 -0300 Subject: [PATCH] chore: add release profile for updater and api examples --- examples/api/src-tauri/Cargo.lock | 2 +- examples/api/src-tauri/Cargo.toml | 8 ++++++++ examples/updater/src-tauri/Cargo.toml | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/examples/api/src-tauri/Cargo.lock b/examples/api/src-tauri/Cargo.lock index 736bb026d..78e0f1d2d 100644 --- a/examples/api/src-tauri/Cargo.lock +++ b/examples/api/src-tauri/Cargo.lock @@ -3753,7 +3753,7 @@ dependencies = [ [[package]] name = "wry" version = "0.12.2" -source = "git+https://github.com/tauri-apps/wry?rev=27cf3735f717ffcc409e79031356ea0c99cadf8a#27cf3735f717ffcc409e79031356ea0c99cadf8a" +source = "git+https://github.com/tauri-apps/wry?rev=11557f15cf759fcf3008598b684c009f03a8c645#11557f15cf759fcf3008598b684c009f03a8c645" dependencies = [ "cocoa", "core-graphics 0.22.3", diff --git a/examples/api/src-tauri/Cargo.toml b/examples/api/src-tauri/Cargo.toml index 5329a8b41..6d424d69d 100644 --- a/examples/api/src-tauri/Cargo.toml +++ b/examples/api/src-tauri/Cargo.toml @@ -17,3 +17,11 @@ tauri = { path = "../../../core/tauri", features = ["api-all", "cli", "system-tr [features] default = [ "custom-protocol" ] custom-protocol = [ "tauri/custom-protocol" ] + +# default to small, optimized release binaries +[profile.release] +panic = "abort" +codegen-units = 1 +lto = true +incremental = false +opt-level = "s" diff --git a/examples/updater/src-tauri/Cargo.toml b/examples/updater/src-tauri/Cargo.toml index aed084f0d..1cec0f597 100644 --- a/examples/updater/src-tauri/Cargo.toml +++ b/examples/updater/src-tauri/Cargo.toml @@ -21,3 +21,11 @@ custom-protocol = [ "tauri/custom-protocol" ] [[bin]] name = "updater-example" path = "src/main.rs" + +# default to small, optimized release binaries +[profile.release] +panic = "abort" +codegen-units = 1 +lto = true +incremental = false +opt-level = "s"