X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=Cargo.toml;h=8614cb48c1f15207023d9fd00b952600804d4e1b;hb=85d3cb802c21c72b293db9eab45edf481548d697;hp=2ff627e28199012db91c8c07e994ae2eb6769ecd;hpb=af9d1cf7762ddcf45b94d7e18d3391c16c30396a;p=rust-lightning diff --git a/Cargo.toml b/Cargo.toml index 2ff627e2..8614cb48 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,14 +2,38 @@ members = [ "lightning", + "lightning-block-sync", + "lightning-invoice", "lightning-net-tokio", - "lightning-c-bindings", + "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 +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 +lto = "off" [profile.release] opt-level = 3 lto = true +panic = "abort"