]> git.bitcoin.ninja Git - rust-lightning/blob - Cargo.toml
Make PackageTemplate::height_timer non-optional
[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 -O2 is well
20 # worth it. Note that we only apply optimizations to dependencies, not workspace
21 # crates themselves.
22 # https://doc.rust-lang.org/cargo/reference/profiles.html#profile-selection
23 [profile.dev.package."*"]
24 opt-level = 2
25
26 # It appears some minimal optimizations are required to inline many std methods
27 # and reduce the otherwise-substantial time spent in std self-checks. We do so
28 # here but ensure we keep LTO disabled as otherwise we're re-optimizing all our
29 # dependencies every time we make any local changes.
30 [profile.dev]
31 opt-level = 1
32 lto = "off"
33
34 [profile.release]
35 opt-level = 3
36 lto = true
37 panic = "abort"
38
39 [profile.bench]
40 opt-level = 3
41 codegen-units = 1
42 lto = true