]> git.proxmox.com Git - pve-xtermjs.git/commitdiff
termproxy: enable full LTO
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 4 Oct 2023 15:26:56 +0000 (17:26 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 17 Oct 2023 08:49:54 +0000 (10:49 +0200)
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 <t.lamprecht@proxmox.com>
termproxy/Cargo.toml

index ee173829c3df92a1ca471e29ceeee0e055b562bb..dba3fbdb1892fc60deaed6080fcfc0b739acae65 100644 (file)
@@ -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" ] }