From f8cc0ae9ae030aca2887dc2a1f57f314181c0a58 Mon Sep 17 00:00:00 2001 From: gennyble Date: Fri, 25 Aug 2023 23:23:45 -0500 Subject: play with compilation profile --- Cargo.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index fe0fe57..a1d0021 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,10 +10,16 @@ repository = "https://github.com/gennyble/whenwasit" camino = "1.1.6" getopts = "0.2.21" +# takes ~250K off the binary +[profile.release] +strip = true +codegen-units = 1 +panic = "abort" +lto = true + # The profile that 'cargo dist' will build with [profile.dist] inherits = "release" -lto = "thin" # Config for 'cargo dist' [workspace.metadata.dist] -- cgit 1.4.1-3-g733a5