aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2020-04-26 16:15:25 +0200
committerDaniel <kingdread@gmx.de>2020-04-26 16:15:25 +0200
commit7b3705cf6852dc1a894c63392cd3dee86782dd98 (patch)
tree59829cd015667529a58c99c2bb32b9946f2a4f31
parentda2f895e40f05b3e06f9e5f5f5a5915a8acffe85 (diff)
downloadraidgrep-7b3705cf6852dc1a894c63392cd3dee86782dd98.tar.gz
raidgrep-7b3705cf6852dc1a894c63392cd3dee86782dd98.tar.bz2
raidgrep-7b3705cf6852dc1a894c63392cd3dee86782dd98.zip
build release with lto
This does increase the build times, but it makes sure the binaries are a bit smaller (especially a gain for the Windows binary). In addition, it removes librt, which is unneeded and gave warnings in namcap.
-rw-r--r--Cargo.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 514b6f8..3736b9a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,6 +8,9 @@ description = "An evtc searching tool, akin to find"
readme = "README.md"
repository = "https://gitlab.com/dunj3/raidgrep"
+[profile.release]
+lto = true
+
[dependencies]
evtclib = { path = "evtclib" }
regex = "1"