We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04dbf1f + e808d50 commit df778b6Copy full SHA for df778b6
Cargo.toml
@@ -5,11 +5,13 @@ members = [
5
"lightning-net-tokio",
6
]
7
8
-# Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it
9
-[profile.test]
10
-opt-level = 1
11
-
+# Our tests do actual crypo 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
12
+# https://doc.rust-lang.org/cargo/reference/profiles.html#profile-selection
13
[profile.dev]
14
+opt-level = 1
15
panic = "abort"
16
17
[profile.release]
0 commit comments