diff --git a/Cargo.toml b/Cargo.toml index c32a5c7ac1..740f4a84ba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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