diff options
author | rabite <rabite@posteo.de> | 2019-04-27 14:34:41 +0200 |
---|---|---|
committer | rabite <rabite@posteo.de> | 2019-04-27 14:39:08 +0200 |
commit | 392e6c0128f1669d8e689d097ef8a29d00d00e08 (patch) | |
tree | 63d1c98f0fe686e8bb99a8076371e8ee590b2ad9 | |
parent | 2974d744a68e3edec3ddc6b3a6c1db32eb80fa28 (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 |