From c70156b12298e4b31bc68b3222328d8d3927223f Mon Sep 17 00:00:00 2001 From: Chevdor Date: Tue, 25 Jan 2022 15:46:05 +0100 Subject: [PATCH] Add production profile (#934) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add production profile * Fix opt-level * Update Cargo.toml Co-authored-by: Bastian Köcher * Move opt-level to release Co-authored-by: Bastian Köcher --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 7cc0e86bbf..6cb33d8dbc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,3 +41,9 @@ members = [ [profile.release] panic = "unwind" +opt-level = 3 + +[profile.production] +inherits = "release" +lto = true +codegen-units = 1