Apply -O1 only to tests, not all dev (which is used for bindings)
[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.test]
11 opt-level = 1
12
13 [profile.release]
14 opt-level = 3
15 lto = true