Skip to content

Warn when [patch] section is being ignored because of workspaces #6248

@jethrogb

Description

@jethrogb

Describe the problem you are trying to solve

When you add a [patch] section to a crate's Cargo.toml, this section is ignored if the crate is part of a workspace. The [patch] section should be added in the workspace's Cargo.toml instead.

Describe the solution you'd like

cargo should warn about this situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions