From f6ad45efe49e81c8970346d2602e455f53e6d95e Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 13 Nov 2021 11:28:06 +0100 Subject: Enable LTO for release builds The speedup we might get is not too important, but the smaller binary size is nice to have (currently, down from ~15 MiB to ~8 MiB). --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index dd64e8f..e1f6f56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,9 @@ path = "src/main.rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[profile.release] +lto = true + [workspace] [dependencies] -- cgit v1.2.3