From 364f3a3564d691c2e1abb2a5e351a56c8b3293a1 Mon Sep 17 00:00:00 2001 From: yuri <1969yuri1969@gmail.com> Date: Sun, 13 Oct 2019 06:33:47 +0200 Subject: [PATCH] build: Improve release binary optimization (#527) --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 7d2ef940..0dacdd87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,6 +49,10 @@ yaml-rust = "0.4" [dev-dependencies] tempfile = "3.1.0" +[profile.release] +codegen-units = 1 +lto = true + [[bin]] name = "starship" path = "src/main.rs"