From c82a382b0b6f92a19d68719713a689698feb5ba5 Mon Sep 17 00:00:00 2001 From: Irevoire Date: Tue, 8 Jun 2021 11:18:49 +0200 Subject: [PATCH] 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