Merge pull request #3033 from TheBlueMatt/2024-04-notify-bp-on-blocks
[rust-lightning] / Cargo.toml
1 [workspace]
2 resolver = "2"
3
4 members = [
5     "lightning",
6     "lightning-block-sync",
7     "lightning-invoice",
8     "lightning-net-tokio",
9     "lightning-persister",
10     "lightning-background-processor",
11     "lightning-rapid-gossip-sync",
12     "lightning-custom-message",
13     "lightning-transaction-sync",
14     "possiblyrandom",
15 ]
16
17 exclude = [
18     "no-std-check",
19     "msrv-no-dev-deps-check",
20     "bench",
21 ]
22
23 # Our tests do actual crypto and lots of work, the tradeoff for -O2 is well
24 # worth it. Note that we only apply optimizations to dependencies, not workspace
25 # crates themselves.
26 # https://doc.rust-lang.org/cargo/reference/profiles.html#profile-selection
27 [profile.dev.package."*"]
28 opt-level = 2
29
30 # It appears some minimal optimizations are required to inline many std methods
31 # and reduce the otherwise-substantial time spent in std self-checks. We do so
32 # here but ensure we keep LTO disabled as otherwise we're re-optimizing all our
33 # dependencies every time we make any local changes.
34 [profile.dev]
35 opt-level = 1
36 lto = "off"
37
38 [profile.release]
39 opt-level = 3
40 lto = true
41 panic = "abort"
42
43 [patch.crates-io.possiblyrandom]
44 path = "possiblyrandom"