From ba5321c4a030103f067fcd248d959fa75524267f Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Tue, 24 May 2022 19:37:01 +0200 Subject: [PATCH] Strip release binary via Rust toolchain As of Rust 1.59, full stripping support has been added (see https://blog.rust-lang.org/2022/02/24/Rust-1.59.0.html#creating-stripped-binaries). --- Cargo.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 68ba2ab3f..4b5b5dd29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -131,10 +131,9 @@ osx_minimum_system_version = "10.14" resources = ["mac-tray.png"] #https://github.com/johnthagen/min-sized-rust -#!!! rembember call "strip target/release/rustdesk" -# which reduce binary size a lot [profile.release] lto = true codegen-units = 1 panic = 'abort' +strip = true #opt-level = 'z' # only have smaller size after strip