From dd0bef3377abcc0d8ca41fc51f2aa184c611804c Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Sat, 16 Jan 2021 17:56:36 -0500 Subject: [PATCH] Enable link time optimization for release builds Signed-off-by: Randy Barlow --- CHANGELOG.md | 1 + Cargo.toml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24b899f..a55bc89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ * [#19](https://github.com/bowlofeggs/rpick/issues/19) Update rand to 0.8.2. * [#20](https://github.com/bowlofeggs/rpick/issues/20) `cargo test --release` now works. +* [#22](https://github.com/bowlofeggs/rpick/pull/22) Use link time optimization for release builds. # 0.7.1 diff --git a/Cargo.toml b/Cargo.toml index d6563c7..1c4499a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,3 +29,6 @@ assert_cmd = "1" rand = {version = "0.8", features = ["small_rng"]} regex = "1" tempfile = "3" + +[profile.release] +lto = true