Make binaries faster on release profile through better compile options

This commit is contained in:
Loïc Lecrenier 2022-08-16 20:50:08 +02:00
parent 293a246af8
commit 03e679b634

View File

@ -8,6 +8,8 @@ opt-level = 3
[profile.release] [profile.release]
debug = true debug = true
codegen-units = 1
lto = "thin"
# Make sure that the build scripts and proc-macros are compiled with # Make sure that the build scripts and proc-macros are compiled with
# all the optimizations. It speeds up the zip crate that we use in the build.rs. # all the optimizations. It speeds up the zip crate that we use in the build.rs.