diff options
author | rabite <rabite@posteo.de> | 2019-04-27 14:34:41 +0200 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-04-27 14:34:41 +0200 |
commit | b1a3f008129f5d209818eac0cb1747985801b4a1 (patch) | |
tree | f5422f517e44c80a6dd763702038992224c91127 | |
parent | e46c2532f89112fab7a3a4353bef0ee2c594b209 (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.toml | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |