aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2021-11-13 11:28:06 +0100
committerDaniel Schadt <kingdread@gmx.de>2021-11-13 11:28:06 +0100
commitf6ad45efe49e81c8970346d2602e455f53e6d95e (patch)
treef03b3e9d40cec038014d5fe34224f198e97d5c05
parent786d5e2ba1544f29445651f2d2aa52ba0fba9fbd (diff)
downloadmodderbaas-master.tar.gz
modderbaas-master.tar.bz2
modderbaas-master.zip
Enable LTO for release buildsHEADmaster
The speedup we might get is not too important, but the smaller binary size is nice to have (currently, down from ~15 MiB to ~8 MiB).
-rw-r--r--Cargo.toml3
1 files changed, 3 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index dd64e8f..e1f6f56 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -10,6 +10,9 @@ path = "src/main.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+[profile.release]
+lto = true
+
[workspace]
[dependencies]