From 55ce608f5125a98e52d492d7d5e01e29ee6acfd4 Mon Sep 17 00:00:00 2001 From: Slany Date: Sun, 7 Mar 2021 17:35:13 +0100 Subject: [PATCH] feat: reduce binary size --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 04364b6..104eada 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,3 +18,8 @@ indexmap = { version = "1.6", features = ["serde-1"] } [target.'cfg(windows)'.dependencies] winreg = "0.7" + +[profile.release] +opt-level = 'z' +lto = true +codegen-units = 1