Skip to content

add --ignore-rust-version for cargo install #11718

@ensc

Description

@ensc

Problem

Subcommands like build allow to ignore the minimum rust version of dependencies by the --ignore-rust-version flag.

Because build is a step of cargo install, this flag should be available there too.

Proposed Solution

Index: cargo/src/bin/cargo/commands/install.rs
===================================================================
--- cargo.orig/src/bin/cargo/commands/install.rs
+++ cargo/src/bin/cargo/commands/install.rs
@@ -78,6 +78,7 @@ pub fn cli() -> App {
                 .conflicts_with_all(&["git", "path", "index"]),
         )
         .arg_message_format()
+        .arg_ignore_rust_version()
         .arg_timings()
         .after_help("Run `cargo help install` for more detailed information.\n")

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rust-versionArea: rust-version in Cargo.tomlC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`E-easyExperience: EasyS-acceptedStatus: Issue or feature is accepted, and has a team member available to help mentor or review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions