From 5cfb5df31e80dffa6afe4d2ba43e67d7f7730565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Lecrenier?= Date: Wed, 10 Aug 2022 10:23:00 +0200 Subject: [PATCH] Set opt-level to 0 for debug builds But speed up compile times by optimising build dependencies of lindera --- Cargo.toml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 90756bc1f..3a8eedc72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,19 +4,29 @@ members = ["milli", "filter-parser", "flatten-serde-json", "json-depth-checker", default-members = ["milli"] [profile.dev] -opt-level = 3 +opt-level = 0 [profile.release] debug = true codegen-units = 1 -# 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] +[profile.dev.package.lindera-ipadic-builder] opt-level = 3 -[profile.release.build-override] +[profile.dev.package.encoding] opt-level = 3 -[profile.bench.build-override] +[profile.dev.package.yada] opt-level = 3 -[profile.test.build-override] + +[profile.release.package.lindera-ipadic-builder] +opt-level = 3 +[profile.release.package.encoding] +opt-level = 3 +[profile.release.package.yada] +opt-level = 3 + +[profile.bench.package.lindera-ipadic-builder] +opt-level = 3 +[profile.bench.package.encoding] +opt-level = 3 +[profile.bench.package.yada] opt-level = 3