From 53797b65a8c289e31f1efedef1de42a69b64c29b Mon Sep 17 00:00:00 2001
From: cassaundra
Date: Mon, 15 May 2023 14:58:50 -0700
Subject: [PATCH] Document cargo add's --ignore-rust-version flag
---
src/doc/man/cargo-add.md | 9 +++++++++
src/doc/man/generated_txt/cargo-add.txt | 9 +++++++++
src/doc/src/commands/cargo-add.md | 8 ++++++++
src/etc/man/cargo-add.1 | 10 ++++++++++
4 files changed, 36 insertions(+)
diff --git a/src/doc/man/cargo-add.md b/src/doc/man/cargo-add.md
index c441a82b2ffe..3c15fc9d5dba 100644
--- a/src/doc/man/cargo-add.md
+++ b/src/doc/man/cargo-add.md
@@ -123,6 +123,15 @@ crates, the features for a specific crate may be enabled with
which enables all specified features.
{{/option}}
+{{#option "`--ignore-rust-version`" }}
+Ignore `rust-version` specification in packages.
+
+This option is unstable and available only on the
+[nightly channel](https://doc.rust-lang.org/book/appendix-07-nightly-rust.html)
+and requires the `-Z unstable-options` flag to enable.
+See for more information.
+{{/option}}
+
{{/options}}
diff --git a/src/doc/man/generated_txt/cargo-add.txt b/src/doc/man/generated_txt/cargo-add.txt
index ac332a44e72b..6447499dc04b 100644
--- a/src/doc/man/generated_txt/cargo-add.txt
+++ b/src/doc/man/generated_txt/cargo-add.txt
@@ -111,6 +111,15 @@ OPTIONS
be enabled with package-name/feature-name syntax. This flag may be
specified multiple times, which enables all specified features.
+ --ignore-rust-version
+ Ignore rust-version specification in packages.
+
+ This option is unstable and available only on the nightly channel
+ and
+ requires the -Z unstable-options flag to enable. See
+ for more
+ information.
+
Display Options
-v, --verbose
Use verbose output. May be specified twice for “very verbose”
diff --git a/src/doc/src/commands/cargo-add.md b/src/doc/src/commands/cargo-add.md
index 89c1cc6f1eae..132c093264d1 100644
--- a/src/doc/src/commands/cargo-add.md
+++ b/src/doc/src/commands/cargo-add.md
@@ -129,6 +129,14 @@ crates, the features for a specific crate may be enabled with
which enables all specified features.
+--ignore-rust-version
+Ignore rust-version
specification in packages.
+This option is unstable and available only on the
+nightly channel
+and requires the -Z unstable-options
flag to enable.
+See https://github.com/rust-lang/cargo/issues/5579 for more information.
+
+
diff --git a/src/etc/man/cargo-add.1 b/src/etc/man/cargo-add.1
index 086a561fd651..f69e6d0db2f2 100644
--- a/src/etc/man/cargo-add.1
+++ b/src/etc/man/cargo-add.1
@@ -140,6 +140,16 @@ crates, the features for a specific crate may be enabled with
\fBpackage\-name/feature\-name\fR syntax. This flag may be specified multiple times,
which enables all specified features.
.RE
+.sp
+\fB\-\-ignore\-rust\-version\fR
+.RS 4
+Ignore \fBrust\-version\fR specification in packages.
+.sp
+This option is unstable and available only on the
+\fInightly channel\fR
+and requires the \fB\-Z unstable\-options\fR flag to enable.
+See for more information.
+.RE
.SS "Display Options"
.sp
\fB\-v\fR,