From b35ced88485ce2f4545a9d26fae137ec3d7c39b9 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Thu, 11 Sep 2025 12:20:27 +0200 Subject: [PATCH] build: update release build profile --- Cargo.toml | 4 ++-- ui/Cargo.toml | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e0aacd7..ba9c7bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,8 +19,8 @@ itertools = "0.14" #openssl-sys = { version = "0.9", features = ["vendored"] } [profile.release] -opt-level = "s" +opt-level = "z" codegen-units = 1 -lto = "thin" +lto = true strip = true panic = "abort" diff --git a/ui/Cargo.toml b/ui/Cargo.toml index b8537ad..8ee0fe5 100644 --- a/ui/Cargo.toml +++ b/ui/Cargo.toml @@ -10,4 +10,11 @@ rfd = "0.15" itertools = "0.14" [build-dependencies] -winresource = "0.1" \ No newline at end of file +winresource = "0.1" + +[profile.release] +opt-level = "z" +codegen-units = 1 +lto = true +strip = true +panic = "abort" \ No newline at end of file