]> git.bitcoin.ninja Git - rust-lightning/blob - Cargo.toml
Limit TLV stream decoding to type ranges
[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     "no-std-check",
15 ]
16
17 # Our tests do actual crypto and lots of work, the tradeoff for -O1 is well worth it.
18 # Ideally we would only do this in profile.test, but profile.test only applies to
19 # the test binary, not dependencies, which means most of the critical code still
20 # gets compiled as -O0. See
21 # https://doc.rust-lang.org/cargo/reference/profiles.html#profile-selection
22 [profile.dev]
23 opt-level = 1
24 panic = "abort"
25
26 [profile.release]
27 opt-level = 3
28 lto = true
29 panic = "abort"
30
31 [profile.bench]
32 opt-level = 3
33 codegen-units = 1
34 lto = true