Add cargo profiles
@@ -11,9 +11,6 @@ license = "Apache-2.0"
keywords = [ "iota", "tangle", "client" ]
categories = [ "cryptography::cryptocurrencies" ]
-[package.metadata.cargo-udeps.ignore]
-normal = [ "async-trait", "derive_builder", "slog-stdlog" ]
-
[dependencies]
bee-rest-api = { git = "https://github.com/iotaledger/bee", rev = "b64862a1f9a3d66582d34a8462668d80b3296588", default-features = false }
bee-message = { git = "https://github.com/iotaledger/bee", rev = "b64862a1f9a3d66582d34a8462668d80b3296588", default-features = false, features = [ "serde", "dto" ] }
@@ -75,6 +72,22 @@ tls = [ "reqwest/rustls-tls" ]
stronghold = [ "iota_stronghold", "riker", "crypto05" ]
message_interface = [ "backtrace" ]
+[profile.dev]
+panic = "abort"
+
+[profile.release]
+panic = "abort"
+
+[profile.production]
+codegen-units = 1
+inherits = "release"
+lto = true
+panic = "abort"
+strip = "symbols"
+
+[package.metadata.cargo-udeps.ignore]
+normal = [ "async-trait", "derive_builder", "slog-stdlog" ]
+
# Node API core examples
[[example]]
