From 53bbc022a35e3ac76dd409927104f019a61b331e Mon Sep 17 00:00:00 2001 From: Alex Page Date: Sat, 24 Jun 2023 15:52:32 -0400 Subject: [PATCH] Optimize for filesize in release mode --- Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index aeeec04..e6c9538 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,11 @@ crate-type = ["lib"] [[bin]] name = "xpkey" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[profile.release] +strip = true +opt-level = "z" +lto = true +codegen-units = 1 [dependencies] anyhow = "1.0.71"