From c6583871b4e7892cfda7d1033f48ae815bc0b284 Mon Sep 17 00:00:00 2001 From: Alexey Zinchenko Date: Fri, 12 Feb 2021 00:15:38 +0300 Subject: [PATCH] Reduced output file's size for 'release' profile. --- Cargo.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 26349fd..52eb502 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,4 +11,10 @@ license-file = "LICENSE" [dependencies] clap = "2.33.3" rand = "0.8.3" -walkdir = "2.3.1" \ No newline at end of file +walkdir = "2.3.1" + +[profile.release] +opt-level = 'z' # optimize for size +lto = true +codegen-units = 1 +panic = 'abort' \ No newline at end of file