diff --git a/src/bin/cargo/commands/install.rs b/src/bin/cargo/commands/install.rs index 790bfd2d7bce..8197a16900f4 100644 --- a/src/bin/cargo/commands/install.rs +++ b/src/bin/cargo/commands/install.rs @@ -80,6 +80,7 @@ pub fn cli() -> Command { .requires("crate") .conflicts_with_all(&["git", "path", "index"]), ) + .arg_ignore_rust_version() .arg_message_format() .arg_timings() .after_help("Run `cargo help install` for more detailed information.\n") diff --git a/src/doc/man/cargo-install.md b/src/doc/man/cargo-install.md index 14c2296c2281..31c3d6048306 100644 --- a/src/doc/man/cargo-install.md +++ b/src/doc/man/cargo-install.md @@ -179,6 +179,8 @@ See also the `--profile` option for choosing a specific profile by name. {{> options-profile }} +{{> options-ignore-rust-version }} + {{> options-timings }} {{/options}} diff --git a/src/doc/man/generated_txt/cargo-install.txt b/src/doc/man/generated_txt/cargo-install.txt index a285a1b68901..b13c3d78eb14 100644 --- a/src/doc/man/generated_txt/cargo-install.txt +++ b/src/doc/man/generated_txt/cargo-install.txt @@ -215,6 +215,11 @@ OPTIONS for more details on profiles. + --ignore-rust-version + Install the target even if the selected Rust compiler is older than + the required Rust version as configured in the project’s + rust-version field. + --timings=fmts Output information how long each compilation takes, and track concurrency information over time. Accepts an optional diff --git a/src/doc/src/commands/cargo-install.md b/src/doc/src/commands/cargo-install.md index 1601872ed8b1..9b8c4084e73b 100644 --- a/src/doc/src/commands/cargo-install.md +++ b/src/doc/src/commands/cargo-install.md @@ -248,6 +248,12 @@ See the the reference for more details +
--ignore-rust-version
+
Install the target even if the selected Rust compiler is older than the +required Rust version as configured in the project’s rust-version field.
+ + +
--timings=fmts
Output information how long each compilation takes, and track concurrency information over time. Accepts an optional comma-separated list of output diff --git a/src/etc/man/cargo-install.1 b/src/etc/man/cargo-install.1 index 32b2bf4c95a6..49f5ce90d78d 100644 --- a/src/etc/man/cargo-install.1 +++ b/src/etc/man/cargo-install.1 @@ -273,6 +273,12 @@ Install with the given profile. See the \fIthe reference\fR for more details on profiles. .RE .sp +\fB\-\-ignore\-rust\-version\fR +.RS 4 +Install the target even if the selected Rust compiler is older than the +required Rust version as configured in the project\[cq]s \fBrust\-version\fR field. +.RE +.sp \fB\-\-timings=\fR\fIfmts\fR .RS 4 Output information how long each compilation takes, and track concurrency