From cbc6f89f34abab7e749e9382333ea0b0f82a06dc Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Sun, 26 Nov 2023 10:17:03 +1300 Subject: Shrink and strip compiled binary in release mode --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 1bc614d..3ffc706 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,3 +6,10 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] + +[profile.release] +lto=true +opt-level="s" +debug=false +strip=true +codegen-units=1 -- cgit v1.2.3-70-g09d2