From 88b602a124be181b012eb03477dc1370cd4b6522 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 22 Dec 2024 15:12:40 +0100 Subject: [PATCH] chore: override release for smaller binaries Signed-off-by: kjuulh --- Cargo.lock | 2 +- Cargo.toml | 9 +++++++++ crates/kignore/Cargo.toml | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index e41dc7f..91dd535 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -197,7 +197,7 @@ checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" [[package]] name = "kignore" -version = "0.3.0" +version = "0.4.0" dependencies = [ "clap", "console", diff --git a/Cargo.toml b/Cargo.toml index f06f550..d03cfe6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,12 @@ resolver = "2" [workspace.package] version = "0.4.0" + +[profile.release] +opt-level = "z" +lto = true +codegen-units = 1 +debug = false +panic = "abort" +overflow-checks = false +strip = true diff --git a/crates/kignore/Cargo.toml b/crates/kignore/Cargo.toml index bc63eb3..a1419ea 100644 --- a/crates/kignore/Cargo.toml +++ b/crates/kignore/Cargo.toml @@ -15,6 +15,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + [dependencies] clap = { version = "4.5.4", features = ["env", "unicode", "string"] } console = "0.15.8"