Skip to content

Respect rust-version when selecting a version for cargo install #10903

Open
@epage

Description

@epage

When running cargo install foo, if my rust version is too old, I'll get compilation errors. If the failing crate sets rust-version, then I'll get a nice error message about it but no path forward for fixing it. #10891 adds a path forward for cargo install when the failure is in a dependency but not when its in the crate itself that is being installed.

Ideally, cargo install will select an older version (with a warning) that is compatible with my toolchain. As a step back from the ideal, I'd get an error with corrective steps (ideally, telling me what version to use).

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-installS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions