Skip to content

Cargo-installing a binary within a workspace shows warnings about profile overrides #8328

@tomaka

Description

@tomaka

Situation:

  • A workspace is composed of two packages: a and b.
  • b depends on the crate smallvec.
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions