From e11cf98b74e1e62132e0f4918e94efddd053b940 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 18 Jun 2019 23:00:22 +0200 Subject: [PATCH] Enable link-time optimization for release builds This creates faster and smaller binaries, at the cost of longer build times. --- Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 0095665e..7c90196b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,3 +74,5 @@ name = "oxipng" path = "src/lib.rs" [profile.dev] opt-level = 2 +[profile.release] +lto = true