From be19003ba1bd6d68ccf13390e9adbb724fcfed8c Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Tue, 21 Mar 2023 23:36:27 +0100 Subject: [PATCH] Optimize release build --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 506e5d8..93f7106 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,3 +11,10 @@ openai_rs = { path = "./OpenAI-Rust" } elevenlabs_rs = { path = "./elevenlabs-api-rust" } tokio = "1.26.0" rodio = "0.17.1" + +[profile.release] +split-debuginfo = "packed" +strip = "symbols" +lto = "fat" +panic = "abort" +codegen-units = 1