LTO in release mode by default, which is really critical for C libs
[rust-lightning] / 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