Skip to content

Allow [patch] (and [replace]) sections in Cargo config. #5539

@vext01

Description

@vext01

Scenario:

  • You have several smaller libraries you are developing together.
  • You don't want to, or can't, use a workspace.
  • You don't want to have to keep changing and git stashing [patch] sections in the scattered Cargo.toml files (you are bound to commit them accidentally at some point).

Wouldn't it be super useful if we could put [patch] (and maybe [replace] too) sections into our ~/.cargo/config? I'd certainly use that.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-patchArea: [patch] table overrideC-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