From 7d87397198aaf181f7879efb96d47fb9d3e98766 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 4 Oct 2023 17:26:56 +0200 Subject: [PATCH] termproxy: enable full LTO shaves of over 100KB of the final binary and this crate is small enough to not notice a relevant compile time impact. Signed-off-by: Thomas Lamprecht --- termproxy/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/termproxy/Cargo.toml b/termproxy/Cargo.toml index ee17382..dba3fbd 100644 --- a/termproxy/Cargo.toml +++ b/termproxy/Cargo.toml @@ -11,6 +11,9 @@ license = "AGPL-3" exclude = [ "build", "debian" ] +[profile.release] +lto = true + [dependencies] anyhow = "1" mio = { version = "0.8", features = [ "net", "os-ext" ] } -- 2.39.2