summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuri <1969yuri1969@gmail.com>2019-10-13 06:33:47 +0200
committerMatan Kushner <hello@matchai.me>2019-10-13 13:33:47 +0900
commit364f3a3564d691c2e1abb2a5e351a56c8b3293a1 (patch)
treeaba45f094bb6fedb2590e5855cac754000f1c196
parentcc68dec795b2388c2f1d7bf5326aad4273fa474b (diff)
build: Improve release binary optimization (#527)
-rw-r--r--Cargo.toml4
1 files changed, 4 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 7d2ef9402..0dacdd87d 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"