Always optimize dependencies

They are only built once, but the time of
`cargo nextest run` is reduced by around 40% as a result.
This commit is contained in:
link2xt
2023-01-28 16:30:21 +00:00
committed by holger krekel
parent 76893df5bd
commit 87c333ff7a

View File

@@ -13,6 +13,12 @@ opt-level = 1
[profile.test]
opt-level = 0
# Always optimize dependencies.
# This does not apply to crates in the workspace.
# <https://doc.rust-lang.org/cargo/reference/profiles.html#overrides>
[profile.dev.package."*"]
opt-level = 3
[profile.release]
lto = true
panic = 'abort'