mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 10:07:40 +08:00
Set opt-level to 0 for debug builds
But speed up compile times by optimising build dependencies of lindera
This commit is contained in:
parent
55d889522b
commit
5cfb5df31e
24
Cargo.toml
24
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
|
||||
|
Loading…
Reference in New Issue
Block a user