X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=Cargo.toml;h=8614cb48c1f15207023d9fd00b952600804d4e1b;hb=refs%2Fheads%2F2023-10-peer-race-send-discon-test;hp=597d4efbabb4e8cca00458db04ddfa2b3bb29c9c;hpb=0d75a63ead0601ae36e7141834f67c881c31eb85;p=rust-lightning diff --git a/Cargo.toml b/Cargo.toml index 597d4efb..8614cb48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,16 +7,31 @@ members = [ "lightning-net-tokio", "lightning-persister", "lightning-background-processor", + "lightning-rapid-gossip-sync" ] -# Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it. -# Ideally we would only do this in profile.test, but profile.test only applies to -# the test binary, not dependencies, which means most of the critical code still -# gets compiled as -O0. See +exclude = [ + "lightning-custom-message", + "lightning-transaction-sync", + "no-std-check", + "msrv-no-dev-deps-check", + "bench", +] + +# Our tests do actual crypto and lots of work, the tradeoff for -O2 is well +# worth it. Note that we only apply optimizations to dependencies, not workspace +# crates themselves. # https://doc.rust-lang.org/cargo/reference/profiles.html#profile-selection +[profile.dev.package."*"] +opt-level = 2 + +# It appears some minimal optimizations are required to inline many std methods +# and reduce the otherwise-substantial time spent in std self-checks. We do so +# here but ensure we keep LTO disabled as otherwise we're re-optimizing all our +# dependencies every time we make any local changes. [profile.dev] opt-level = 1 -panic = "abort" +lto = "off" [profile.release] opt-level = 3