From 86669b66f3dfd2c75891f26dc1aeb4b8af6ba569 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Sat, 28 Jun 2025 22:34:36 +0200 Subject: [PATCH] Optimize release build --- Cargo.toml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 8a879b0..283c0d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,20 @@ name = "book_bot" version = "0.1.0" edition = "2021" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[profile.release] +opt-level = 3 +debug = false +strip = true +lto = true +codegen-units = 1 +panic = 'abort' + +[profile.profiling] +inherits = "release" +debug = true +strip = false + [dependencies] once_cell = "1.21.3"