From 36469974eb9e04f535b3f2b5e529e8e5cc74ced8 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Tue, 5 May 2020 15:41:52 +0800 Subject: [PATCH] add opt --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index dd2026d..139aa77 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,3 +15,9 @@ rust_util = "0.2.5" dingtalk = "1.3.2" chrono = "0.4.11" # log = "0.4.8" + +[profile.release] +opt-level = 'z' +lto = true +codegen-units = 1 +# panic = 'abort'