From fdc0acc729df4f7bea141eb73c9a60bea15eccc6 Mon Sep 17 00:00:00 2001 From: Shigure Kurosaki Date: Sat, 11 Jan 2025 21:13:26 +0800 Subject: [PATCH] chore: reduce build size Signed-off-by: Shigure Kurosaki --- Cargo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index e3653dc..ce20748 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,12 @@ name = "katharsis" [lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin_include)'] } +[profile.release] +strip = true +lto = true +codegen-units = 1 +panic = "abort" + [dependencies] anyhow = "1.0.95" chrono = "0.4.39"