From 3ccd30d007927dc2d23e1998b1cb3f50fe34ffa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=9CM=C3=9C=C5=9E?= <96421894+Tahinli@users.noreply.github.com> Date: Sat, 21 Oct 2023 23:29:55 +0300 Subject: [PATCH 1/2] feat: reduce binary size for linux --- Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 3d80046..a43efd9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,8 @@ name = "rust-tcp-file-transfer" version = "0.1.0" edition = "2021" +[profile.release] +strip = "symbols" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] From 572a70a3badad0de78fd63bfbe655274f7cd34d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=9CM=C3=9C=C5=9E?= <96421894+Tahinli@users.noreply.github.com> Date: Sat, 21 Oct 2023 23:41:25 +0300 Subject: [PATCH 2/2] feat: cargo optimizations --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a43efd9..bec9c30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" [profile.release] strip = "symbols" +opt-level = 3 +overflow-checks = true +lto = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies]