Merge pull request #738 from TheBlueMatt/2020-10-opt-test

Fix passing -O1 to build from `cargo test`
This commit is contained in:
Matt Corallo 2020-10-10 15:21:11 -07:00 committed by GitHub
commit df778b605a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,11 +5,13 @@ members = [
"lightning-net-tokio", "lightning-net-tokio",
] ]
# Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it # Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it.
[profile.test] # Ideally we would only do this in profile.test, but profile.test only applies to
opt-level = 1 # the test binary, not dependencies, which means most of the critical code still
# gets compiled as -O0. See
# https://doc.rust-lang.org/cargo/reference/profiles.html#profile-selection
[profile.dev] [profile.dev]
opt-level = 1
panic = "abort" panic = "abort"
[profile.release] [profile.release]