From 880161181f5bf42bd7332d0509f45a3024b5c4e6 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sat, 24 Aug 2024 23:04:24 +0900 Subject: [PATCH] specify release profile for more optimized binary in release build --- v2/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/v2/Cargo.toml b/v2/Cargo.toml index 1e27c72..8d319dc 100644 --- a/v2/Cargo.toml +++ b/v2/Cargo.toml @@ -17,6 +17,11 @@ path = "src/main.rs" [workspace] members = ["bench"] +[profile.release] +lto = "thin" +panic = "abort" +codegen-units = 1 + [profile.bench] lto = "thin"