From 5b5aeaa68384b885a7e96b5fe10fa2522744f12d Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 26 Jun 2019 15:09:26 +0200 Subject: [PATCH] Enable link-time optimization for release builds (#177) 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 5c24e963..5a71b928 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -70,3 +70,5 @@ name = "oxipng" path = "src/lib.rs" [profile.dev] opt-level = 2 +[profile.release] +lto = true