Set opt-level to 0 for debug builds

But speed up compile times by optimising build dependencies of lindera
This commit is contained in:
Loïc Lecrenier 2022-08-10 10:23:00 +02:00 committed by Loïc Lecrenier
parent 55d889522b
commit 5cfb5df31e

View File

@ -4,19 +4,29 @@ members = ["milli", "filter-parser", "flatten-serde-json", "json-depth-checker",
default-members = ["milli"] default-members = ["milli"]
[profile.dev] [profile.dev]
opt-level = 3 opt-level = 0
[profile.release] [profile.release]
debug = true debug = true
codegen-units = 1 codegen-units = 1
# Make sure that the build scripts and proc-macros are compiled with [profile.dev.package.lindera-ipadic-builder]
# all the optimizations. It speeds up the zip crate that we use in the build.rs.
[profile.dev.build-override]
opt-level = 3 opt-level = 3
[profile.release.build-override] [profile.dev.package.encoding]
opt-level = 3 opt-level = 3
[profile.bench.build-override] [profile.dev.package.yada]
opt-level = 3 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 opt-level = 3