Cargo-installing a binary within a workspace shows warnings about profile overrides #8328
Open
Description
Situation:
- A workspace is composed of two packages:
a
andb
. b
depends on the cratesmallvec
.- The workspace has a section mentioning
[profile.dev.package] smallvec = { opt-level = 3 }
.
When running cargo install --path ./a
, I'm getting a warning:
warning: profile package spec `smallvec` in profile `dev` did not match any packages
This warning is printed as the package a
doesn't depend on smallvec
.
Running cargo install --path ./b
works fine.
I believe that this is an issue with Cargo, as I don't think that there's a clean way to silence this warning.