From c37229175480453c25abf32fda1b14c22d1b65ed Mon Sep 17 00:00:00 2001 From: DuckDuckWhale Date: Fri, 27 Nov 2020 02:39:54 -0800 Subject: [PATCH] Cargo: use LTO and 1 thread for release mode --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 9644b2d..c9e64cd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,10 @@ version = "0.1.0" authors = ["DuckDuckWhale"] edition = "2018" +[profile.release] +codegen-units = 1 +lto = true + [dependencies] chrono = "0.4.19" serde = "1.0.117"