Add a few more simple tests of the PeerHandler
[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 ]
11
12 exclude = [
13     "no-std-check",
14 ]
15
16 # Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it.
17 # Ideally we would only do this in profile.test, but profile.test only applies to
18 # the test binary, not dependencies, which means most of the critical code still
19 # gets compiled as -O0. See
20 # https://doc.rust-lang.org/cargo/reference/profiles.html#profile-selection
21 [profile.dev]
22 opt-level = 1
23 panic = "abort"
24
25 [profile.release]
26 opt-level = 3
27 lto = true
28 panic = "abort"
29
30 [profile.bench]
31 opt-level = 3
32 codegen-units = 1
33 lto = true