Apply -O1 only to tests, not all dev (which is used for bindings)
[rust-lightning] / Cargo.toml
index 6ec1776c93383db7a9419bbe2d3511372134bfc0..551ec358e15e62fc68abc93eddad8c1f30c9cc51 100644 (file)
@@ -3,4 +3,13 @@
 members = [
     "lightning",
     "lightning-net-tokio",
+    "lightning-c-bindings",
 ]
+
+# Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it
+[profile.test]
+opt-level = 1
+
+[profile.release]
+opt-level = 3
+lto = true