]> git.bitcoin.ninja Git - rust-lightning/blob - Cargo.toml
Fix scorer panic when available capacity is zero
[rust-lightning] / Cargo.toml
1 [workspace]
2
3 members = [
4     "lightning",
5     "lightning-block-sync",
6     "lightning-invoice",
7     "lightning-net-tokio",
8     "lightning-persister",
9     "lightning-background-processor",
10     "lightning-rapid-gossip-sync"
11 ]
12
13 exclude = [
14     "lightning-custom-message",
15     "lightning-transaction-sync",
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