From 01d8d70b10797a4671908af35b57f94ab2aeec4e Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 9 Apr 2021 14:03:32 -0400 Subject: [PATCH] Revert "Improve incremental build time (#10039)" (#10086) This reverts commit a87da4b19a6da67dde15d1d0ceefaad2bdad1637. --- Cargo.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index a22ff581b4..bdfcd2adbd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,6 +20,17 @@ exclude = [ "std/hash/_wasm" ] + +[profile.release] +codegen-units = 1 +lto = true +opt-level = 'z' # Optimize for size + +[profile.bench] +codegen-units = 1 +lto = true +opt-level = 'z' # Optimize for size + # Optimize these packages for perf [profile.release.package.rand] opt-level = 3