From c82a382b0b6f92a19d68719713a689698feb5ba5 Mon Sep 17 00:00:00 2001 From: Irevoire Date: Tue, 8 Jun 2021 11:18:49 +0200 Subject: [PATCH 1/2] compile every build.rs with optimization --- Cargo.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index ff0b2582a..1358dbe56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,3 +7,13 @@ debug = true [profile.bench] debug = true + +# Set the settings for build scripts and proc-macros. +[profile.dev.build-override] +opt-level = 3 +[profile.release.build-override] +opt-level = 3 +[profile.bench.build-override] +opt-level = 3 +[profile.test.build-override] +opt-level = 3 From e0c327bae2e49fb136b9a14f20ad999e8cbd7340 Mon Sep 17 00:00:00 2001 From: Irevoire Date: Tue, 8 Jun 2021 11:39:10 +0200 Subject: [PATCH 2/2] Update Cargo.toml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Clément Renault --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 1358dbe56..868199d8a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,8 @@ debug = true [profile.bench] debug = true -# Set the settings for build scripts and proc-macros. +# 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. [profile.dev.build-override] opt-level = 3 [profile.release.build-override]