X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=Cargo.toml;h=afc0092c72da50a1a9fecbf8bfb2edf5daa04104;hb=723c1a62caa6754b40c7c7b7c9b4549b01b7925b;hp=be76477f4c0f0548121cc8f5770053e798bbd3d0;hpb=e954ee8256a70ee917135f4c03c8726bf305c2fc;p=rust-lightning diff --git a/Cargo.toml b/Cargo.toml index be76477f..afc0092c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,6 @@ members = [ "lightning", "lightning-block-sync", - "lightning-transaction-sync", "lightning-invoice", "lightning-net-tokio", "lightning-persister", @@ -13,17 +12,24 @@ members = [ exclude = [ "lightning-custom-message", + "lightning-transaction-sync", "no-std-check", ] -# Our tests do actual crypto 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 +# 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