docs: Explain tradeoffs and use cases of the different release profiles

pull/24376/head
Carol (Nichols || Goulding) 2021-12-06 16:08:41 -05:00
parent 361745803e
commit 255cf79104
No known key found for this signature in database
GPG Key ID: E907EE5A736F87D4
1 changed files with 4 additions and 0 deletions

View File

@ -78,6 +78,8 @@ exclude = [
"tools/",
]
# This profile optimizes for runtime performance and small binary size at the expense of longer
# build times. It's most suitable for final release builds.
[profile.release]
codegen-units = 1
debug = true
@ -86,6 +88,8 @@ lto = "thin"
[profile.bench]
debug = true
# This profile optimizes for short build times at the expense of larger binary size and slower
# runtime performance. It's most suitable for development iterations.
[profile.quick-release]
inherits = "release"
codegen-units = 16