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