Merge pull request #738 from TheBlueMatt/2020-10-opt-test
[rust-lightning] / Cargo.toml
1 [workspace]
2
3 members = [
4     "lightning",
5     "lightning-net-tokio",
6 ]
7
8 # Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it.
9 # Ideally we would only do this in profile.test, but profile.test only applies to
10 # the test binary, not dependencies, which means most of the critical code still
11 # gets compiled as -O0. See
12 # https://doc.rust-lang.org/cargo/reference/profiles.html#profile-selection
13 [profile.dev]
14 opt-level = 1
15 panic = "abort"
16
17 [profile.release]
18 opt-level = 3
19 lto = true
20 panic = "abort"