aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2024-02-07 16:37:02 +0000
committerAlex <alex@adnab.me>2024-02-07 16:37:02 +0000
commit59930977e074a78adaf43f9933612dae835804cf (patch)
tree3b0cd0d66f7bd242457c06a0c4114542225c6fec
parent5d941e0100489fff552b59f0679a2a010403a21c (diff)
parent620664ee9c550636fdbcdf57e428569ac1694603 (diff)
downloadgarage-59930977e074a78adaf43f9933612dae835804cf.tar.gz
garage-59930977e074a78adaf43f9933612dae835804cf.zip
Merge pull request 'Cargo.toml: Enable full LTO in release builds and thin in dev builds.' (#704) from jpds/garage:release-build-lto into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/704
-rw-r--r--Cargo.toml7
1 files changed, 5 insertions, 2 deletions
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