aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Davies <jpds@protonmail.com>2024-02-07 16:11:27 +0000
committerJonathan Davies <jpds@protonmail.com>2024-02-07 16:11:27 +0000
commit620664ee9c550636fdbcdf57e428569ac1694603 (patch)
tree3b0cd0d66f7bd242457c06a0c4114542225c6fec
parent5d941e0100489fff552b59f0679a2a010403a21c (diff)
downloadgarage-620664ee9c550636fdbcdf57e428569ac1694603.tar.gz
garage-620664ee9c550636fdbcdf57e428569ac1694603.zip
Cargo.toml: Enable full LTO in release builds and thin in dev builds.
-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