From c5369dc36c56ae50c974bdac6df9b9af4728070e Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sat, 13 Apr 2024 01:46:54 -0700 Subject: [PATCH] build: use LTO for release profile artifacts this allows us to save ~25-30% on binary sizes, at least in guestinit Signed-off-by: Ariadne Conill --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 15b23dc..615465b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -116,3 +116,6 @@ features = ["tls"] [workspace.dependencies.uuid] version = "1.6.1" features = ["v4"] + +[profile.release] +lto = "fat"