From 173e4249a64dcc62300ba4067b733e24b417e79a Mon Sep 17 00:00:00 2001
From: chylex <contact@chylex.com>
Date: Sat, 30 Sep 2023 22:39:59 +0200
Subject: [PATCH] Optimize release builds

---
 Cargo.toml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Cargo.toml b/Cargo.toml
index b19fb98..eee1dc9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,7 +7,10 @@ edition = "2021"
 name = "apache_prometheus_exporter"
 path = "src/main.rs"
 
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+[profile.release]
+strip = true
+lto = true
+codegen-units = 1
 
 [dependencies]
 actix-web = "4.4.0"