diff --git a/Cargo.toml b/Cargo.toml index 41e9a89d5..5fc9047b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,12 @@ opt-level = 1 [profile.test] opt-level = 0 +# Always optimize dependencies. +# This does not apply to crates in the workspace. +# +[profile.dev.package."*"] +opt-level = 3 + [profile.release] lto = true panic = 'abort'