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 <ariadne@ariadne.space>
This commit is contained in:
Ariadne Conill 2024-04-13 01:46:54 -07:00
parent 17a5a7fd0a
commit c5369dc36c

View File

@ -116,3 +116,6 @@ features = ["tls"]
[workspace.dependencies.uuid]
version = "1.6.1"
features = ["v4"]
[profile.release]
lto = "fat"