From c03782cab9cb70c0715d53da732baa31ccc45c9f Mon Sep 17 00:00:00 2001 From: derklaro Date: Fri, 20 Oct 2023 12:11:27 +0200 Subject: [PATCH] improve release build profile --- openmetrics_udpserver/Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openmetrics_udpserver/Cargo.toml b/openmetrics_udpserver/Cargo.toml index 3fa30e1..639625a 100644 --- a/openmetrics_udpserver/Cargo.toml +++ b/openmetrics_udpserver/Cargo.toml @@ -19,3 +19,10 @@ openmetrics_udpserver_lib = { path = "../openmetrics_udpserver_lib" } # servedensity specific deps md5 = "0.7.*" reqwest = { version = "0.11.*", default-features = false, features = ["rustls-tls", "rustls-tls-native-roots", "blocking"] } + +[profile.release] +lto = true +strip = true +panic = 'abort' +opt-level = 'z' +codegen-units = 1