summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrabite <rabite@posteo.de>2019-04-27 14:34:41 +0200
committerrabite <rabite@posteo.de>2019-04-27 14:34:41 +0200
commitb1a3f008129f5d209818eac0cb1747985801b4a1 (patch)
treef5422f517e44c80a6dd763702038992224c91127
parente46c2532f89112fab7a3a4353bef0ee2c594b209 (diff)
enable lto and limit code generation units
This increases performance and generates a smaller binary. It makes compiling a bit slower, but the trade-off is worth it in the case of hunter.
-rw-r--r--Cargo.toml7
1 files changed, 4 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 995ed25..5908871 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -33,6 +33,7 @@ osstrtools = "0.1"
pathbuftools = "0.1"
-#[profile.release]
-#debug = true
-#lto = false
+# These options increase performance and generate a smaller binary
+[profile.release]
+lto = true
+codegen-units = 1