From 620664ee9c550636fdbcdf57e428569ac1694603 Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Wed, 7 Feb 2024 16:11:27 +0000 Subject: Cargo.toml: Enable full LTO in release builds and thin in dev builds. --- Cargo.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 1daa9f8e..baaf5c26 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -131,7 +131,10 @@ aws-sdk-config = "1.13" aws-sdk-s3 = "1.14" [profile.dev] -lto = "off" +lto = "thin" [profile.release] -debug = true +lto = true +codegen-units = 1 +opt-level = "s" +strip = true -- cgit v1.2.3