Skip to content

cargo add [email protected] lock to the version specific #11687

Open
@epage

Description

@epage

Problem

If I'm explicitly setting the version requirement, there is likely a reason for it, like MSRV. I shouldn't have to then run cargo update -p clap --precise 4.1.3 after running cargo add.

Proposed Solution

When the version requirement is precise, lock to it

Notes

I implemented support for this in cargo-edit's cargo upgrade, see killercup/cargo-edit#795

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`Command-addS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions