Merge pull request #2009 from TheBlueMatt/2023-02-no-racey-retries
[rust-lightning] / Cargo.toml
1 [workspace]
2
3 members = [
4     "lightning",
5     "lightning-block-sync",
6     "lightning-transaction-sync",
7     "lightning-invoice",
8     "lightning-net-tokio",
9     "lightning-persister",
10     "lightning-background-processor",
11     "lightning-rapid-gossip-sync"
12 ]
13
14 exclude = [
15     "lightning-custom-message",
16     "no-std-check",
17 ]
18
19 # Our tests do actual crypto and lots of work, the tradeoff for -O1 is well worth it.
20 # Ideally we would only do this in profile.test, but profile.test only applies to
21 # the test binary, not dependencies, which means most of the critical code still
22 # gets compiled as -O0. See
23 # https://doc.rust-lang.org/cargo/reference/profiles.html#profile-selection
24 [profile.dev]
25 opt-level = 1
26 panic = "abort"
27
28 [profile.release]
29 opt-level = 3
30 lto = true
31 panic = "abort"
32
33 [profile.bench]
34 opt-level = 3
35 codegen-units = 1
36 lto = true