Set panic = abort as we don't want to keep running if we panic.
[ldk-sample] / Cargo.toml
index b32be572ffb1b81c922ee42df3333ecbacddcd96..7a42a02e964a89e494af664479fe6c28b5f4cc0f 100644 (file)
@@ -41,3 +41,9 @@ time = "0.2"
 rand = "0.4"
 serde_json = { version = "1.0" }
 tokio = { version = "1.0", features = [ "io-util", "macros", "rt", "rt-multi-thread", "sync", "net", "time" ] }
+
+[profile.release]
+panic = "abort"
+
+[profile.dev]
+panic = "abort"