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