Set panic = abort as we don't want to keep running if we panic.
authorMatt Corallo <git@bluematt.me>
Tue, 4 May 2021 17:09:32 +0000 (17:09 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 4 May 2021 17:09:32 +0000 (17:09 +0000)
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"