X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=Cargo.toml;h=ec9edb3ac33076af7833898f9c5347db4f34fda5;hb=eecd2cdf4fadc92fa635aa72d32bce1299c470c6;hp=03d58b202cf39ea5526d683711cff464e04b1c10;hpb=343aacc50c73e18ddb1ec52570c5050bdccd09ca;p=rust-lightning diff --git a/Cargo.toml b/Cargo.toml index 03d58b20..ec9edb3a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,18 +1,44 @@ [workspace] +resolver = "2" members = [ "lightning", + "lightning-block-sync", + "lightning-invoice", "lightning-net-tokio", + "lightning-persister", + "lightning-background-processor", + "lightning-rapid-gossip-sync", + "lightning-custom-message", + "lightning-transaction-sync", + "possiblyrandom", ] -# Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it -[profile.test] -opt-level = 1 +exclude = [ + "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] -panic = "abort" +opt-level = 1 +lto = "off" [profile.release] opt-level = 3 lto = true panic = "abort" + +[patch.crates-io.possiblyrandom] +path = "possiblyrandom"