Apply -O1 only to tests, not all dev (which is used for bindings)
[rust-lightning] / Cargo.toml
index 222de893aa46c895c5fdb450bb899761f75f4b30..551ec358e15e62fc68abc93eddad8c1f30c9cc51 100644 (file)
@@ -3,8 +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.dev]
+[profile.test]
 opt-level = 1
+
+[profile.release]
+opt-level = 3
+lto = true