X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=Cargo.toml;h=a3acccfdaea91614b98421590dd567d1a678ef58;hb=refs%2Fheads%2F2023-05-next-htlc-min-max;hp=6ec1776c93383db7a9419bbe2d3511372134bfc0;hpb=53052234959a3c0a7323a194c351c4ba9b46339b;p=rust-lightning diff --git a/Cargo.toml b/Cargo.toml index 6ec1776c..a3acccfd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,5 +2,37 @@ members = [ "lightning", + "lightning-block-sync", + "lightning-invoice", "lightning-net-tokio", + "lightning-persister", + "lightning-background-processor", + "lightning-rapid-gossip-sync" ] + +exclude = [ + "lightning-custom-message", + "lightning-transaction-sync", + "no-std-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"