projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LTO in release mode by default, which is really critical for C libs
[rust-lightning]
/
Cargo.toml
diff --git
a/Cargo.toml
b/Cargo.toml
index 511682e281871d4ffa57209c4f698c4ddab7427b..2ff627e28199012db91c8c07e994ae2eb6769ecd 100644
(file)
--- a/
Cargo.toml
+++ b/
Cargo.toml
@@
-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