X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=Cargo.toml;h=afc0092c72da50a1a9fecbf8bfb2edf5daa04104;hb=2ace882d3929c84ba51d1909f7db4d7e3f2daaed;hp=069e49e8b7c2c2756c9954a48305f2af498e550e;hpb=253af8dd617161b2bd79173f9da3ecc0b0991f7e;p=rust-lightning diff --git a/Cargo.toml b/Cargo.toml index 069e49e8..afc0092c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,18 +2,41 @@ 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 -[profile.test] -opt-level = 1 +exclude = [ + "lightning-custom-message", + "lightning-transaction-sync", + "no-std-check", +] +# 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] -panic = "abort" +opt-level = 1 +lto = "off" [profile.release] opt-level = 3 lto = true panic = "abort" + +[profile.bench] +opt-level = 3 +codegen-units = 1 +lto = true