LTO in release mode by default, which is really critical for C libs
authorMatt Corallo <git@bluematt.me>
Sat, 16 May 2020 01:27:51 +0000 (21:27 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 11 Sep 2020 02:03:32 +0000 (22:03 -0400)
Cargo.toml

index 511682e281871d4ffa57209c4f698c4ddab7427b..2ff627e28199012db91c8c07e994ae2eb6769ecd 100644 (file)
@@ -9,3 +9,7 @@ members = [
 # Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it
 [profile.dev]
 opt-level = 1
+
+[profile.release]
+opt-level = 3
+lto = true