LTO in release mode by default, which is really critical for C libs
[rust-lightning] / Cargo.toml
1 [workspace]
2
3 members = [
4     "lightning",
5     "lightning-net-tokio",
6     "lightning-c-bindings",
7 ]
8
9 # Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it
10 [profile.dev]
11 opt-level = 1
12
13 [profile.release]
14 opt-level = 3
15 lto = true