From 37127e2ce52b3c9c34df4dc7038824b8bec111cf Mon Sep 17 00:00:00 2001 From: gennyble Date: Tue, 11 Mar 2025 19:32:52 -0500 Subject: optimise release profile for small binary size --- Cargo.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a634a91..f53fcbc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,15 @@ name = "corgi" version = "0.1.0" edition = "2024" +[profile.release] +strip = true +opt-level = "z" +lto = true +codegen-units = 1 + +# 1538792 none of the above flags +# 829896 the above flags reduced binary size by around 700K :) + [dependencies] http-body-util = "0.1.3" hyper-util = { version = "0.1.10", features = ["tokio"] } -- cgit 1.4.1-3-g733a5