From b96b244c287e5c39786d28d1ba9eff229d84b449 Mon Sep 17 00:00:00 2001
From: leonzchang May also be specified with the
diff --git a/crates/mdman/src/format/md.rs b/crates/mdman/src/format/md.rs
index 0e1c49837d2..f821cdf6cac 100644
--- a/crates/mdman/src/format/md.rs
+++ b/crates/mdman/src/format/md.rs
@@ -30,11 +30,11 @@ impl super::Formatter for MdFormatter {
}
fn render_options_start(&self) -> &'static str {
- "
### Section options
@@ -166,7 +164,6 @@ terminal.
"
+ "
\n"
}
fn render_option(&self, params: &[&str], block: &str, man_name: &str) -> Result\n"
}
fn render_options_end(&self) -> &'static str {
- "
"
+ "
\n",
+ "
\n",
trimmed.join(", "),
block
))
diff --git a/crates/mdman/tests/compare/links.md b/crates/mdman/tests/compare/links.md
index 949f3749a15..f169e75d796 100644
--- a/crates/mdman/tests/compare/links.md
+++ b/crates/mdman/tests/compare/links.md
@@ -32,6 +32,7 @@ Shortcut unknown: [shortcut unknown]
{{> links-include}}
+
## OPTIONS
{{#options}}
diff --git a/crates/mdman/tests/compare/options.md b/crates/mdman/tests/compare/options.md
index 51415b09e56..b6a4f44053c 100644
--- a/crates/mdman/tests/compare/options.md
+++ b/crates/mdman/tests/compare/options.md
@@ -46,6 +46,7 @@ A named argument.
{{> options-common}}
+
## EXAMPLES
1. An example
diff --git a/crates/mdman/tests/compare/vars.md b/crates/mdman/tests/compare/vars.md
index d41b7658395..98115f595b2 100644
--- a/crates/mdman/tests/compare/vars.md
+++ b/crates/mdman/tests/compare/vars.md
@@ -2,6 +2,7 @@
{{*set foo="Bar"}}
+
{{foo}}
{{lower foo}}
diff --git a/src/doc/man/cargo-rustc.md b/src/doc/man/cargo-rustc.md
index e60b12e8d4d..a59278297dd 100644
--- a/src/doc/man/cargo-rustc.md
+++ b/src/doc/man/cargo-rustc.md
@@ -24,6 +24,7 @@ See registry.default
config key which defaults
crates-io
.
-
term.color
config value.
-
### Manifest Options
@@ -177,7 +174,6 @@ terminal.
Cargo.toml
file in the current directory or any parent directory.
-
-p
spec--package
spec
May also be specified with the net.offline
config value.
-
### Common Options
@@ -249,19 +244,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Add `regex` as a dependency
diff --git a/src/doc/src/commands/cargo-bench.md b/src/doc/src/commands/cargo-bench.md
index d50b35f11c5..582ca4914fb 100644
--- a/src/doc/src/commands/cargo-bench.md
+++ b/src/doc/src/commands/cargo-bench.md
@@ -1,5 +1,4 @@
# cargo-bench(1)
-
## NAME
cargo-bench --- Execute benchmarks of a package
@@ -80,7 +79,6 @@ as a whole.
-
### Package Selection
By default, when no package selection options are given, the packages selected
@@ -109,12 +107,10 @@ double quotes around each pattern.
--all
--workspace
.--exclude
SPEC…--workspace
flag. This flag may be specified multiple times and supports
@@ -125,7 +121,6 @@ single quotes or double quotes around each pattern.--example
name…--profile
name--ignore-rust-version
rust-version
field.--timings=
fmtsCARGO_TARGET_DIR
environment variable, or the
build.target-dir
config value.
Defaults to target
in the root of the workspace.
-
### Display Options
@@ -358,7 +344,6 @@ terminal.
config value.
-
--message-format
fmthuman
or <
human
or <
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Cargo.lock
file is
@@ -417,7 +400,6 @@ See the cargo-fetch(1) command to download depend
offline.
May also be specified with the net.offline
config value.
-Z unstable-options
flag to enable (see
-
### Miscellaneous Options
The `--jobs` argument affects the building of the benchmark executable but
@@ -477,7 +458,6 @@ parallel jobs to the number of logical CPUs plus provided value. If
a string default
is provided, it sets the value back to defaults.
Should not be 0.
-
While `cargo bench` involves compilation, it does not provide a `--keep-going`
@@ -493,13 +473,11 @@ stopping at the first failure. To "compile" as many benchmarks as possible, use
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Build and execute all the benchmarks of the current package:
diff --git a/src/doc/src/commands/cargo-build.md b/src/doc/src/commands/cargo-build.md
index 70c38a05b13..4c106ffeba1 100644
--- a/src/doc/src/commands/cargo-build.md
+++ b/src/doc/src/commands/cargo-build.md
@@ -1,5 +1,4 @@
# cargo-build(1)
-
## NAME
cargo-build --- Compile the current package
@@ -42,12 +41,10 @@ double quotes around each pattern.
--all
--workspace
.--exclude
SPEC…--workspace
flag. This flag may be specified multiple times and supports
@@ -58,7 +55,6 @@ single quotes or double quotes around each pattern.--example
name…-r
--release
release
profile.
See also the --profile
option for choosing a specific profile by name.--profile
name--ignore-rust-version
rust-version
field.--timings=
fmtsCARGO_TARGET_DIR
environment variable, or the
Defaults to target
in the root of the workspace.
-
--out-dir
directoryThis option is unstable and available only on the @@ -281,7 +267,6 @@ terminal. config value.
--message-format
fmthuman
or <
--build-plan
Cargo.toml
file in the current directory or any parent directory.--frozen
--locked
Cargo.lock
file is
@@ -348,7 +331,6 @@ See the cargo-fetch(1) command to download depend
offline.
May also be specified with the net.offline
config value.
-Z unstable-options
flag to enable (see
-
### Miscellaneous Options
default
is provided, it sets the value back to defaults.
Should not be 0.
-
--keep-going
cargo build -j1 --keep-going
would definitely run both
builds, even if the one run first fails.--future-incompat-report
See cargo-report(1)
--all
--workspace
.--exclude
SPEC…--workspace
flag. This flag may be specified multiple times and supports
@@ -63,7 +60,6 @@ single quotes or double quotes around each pattern.--example
name…-r
--release
release
profile.
See also the --profile
option for choosing a specific profile by name.--profile
nameAs a special case, specifying the test
profile will also enable checking in
@@ -201,13 +192,11 @@ detail.
See the reference for more details on profiles.
--ignore-rust-version
rust-version
field.--timings=
fmtsCARGO_TARGET_DIR
environment variable, or the
build.target-dir
config value.
Defaults to target
in the root of the workspace.
-
### Display Options
@@ -271,7 +258,6 @@ terminal.
config value.
-
--message-format
fmthuman
or short
.
human
or <
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Cargo.lock
file is
@@ -329,7 +313,6 @@ See the cargo-fetch(1) command to download depend
offline.
May also be specified with the net.offline
config value.
-Z unstable-options
flag to enable (see
-
### Miscellaneous Options
default
is provided, it sets the value back to defaults.
Should not be 0.
-
--keep-going
cargo check -j1 --keep-going
would definitely run both
builds, even if the one run first fails.--future-incompat-report
See cargo-report(1)
CARGO_TARGET_DIR
environment variable, or the
Defaults to target
in the root of the workspace.
-
--target
triple<arch><sub>-<vendor>-<sys>-<abi>
. Run rustc --print target-list
for a
@@ -71,7 +69,6 @@ target artifacts are placed in a separate directory. See the
build cache documentation for more details.May also be specified with the term.color
config value.
-
### Manifest Options
@@ -114,7 +110,6 @@ terminal.
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Cargo.lock
file is
@@ -138,7 +133,6 @@ See the cargo-fetch(1) command to download depend
offline.
May also be specified with the net.offline
config value.
-Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Remove the entire target directory:
diff --git a/src/doc/src/commands/cargo-doc.md b/src/doc/src/commands/cargo-doc.md
index aebb04c9dd6..7eb518ec9f5 100644
--- a/src/doc/src/commands/cargo-doc.md
+++ b/src/doc/src/commands/cargo-doc.md
@@ -1,5 +1,4 @@
# cargo-doc(1)
-
## NAME
cargo-doc --- Build a package's documentation
@@ -64,12 +63,10 @@ double quotes around each pattern.
--all
--workspace
.--exclude
SPEC…--workspace
flag. This flag may be specified multiple times and supports
@@ -80,7 +77,6 @@ single quotes or double quotes around each pattern.--example
name…-r
--release
release
profile.
See also the --profile
option for choosing a specific profile by name.--profile
name--ignore-rust-version
rust-version
field.--timings=
fmtsCARGO_TARGET_DIR
environment variable, or the
build.target-dir
config value.
Defaults to target
in the root of the workspace.
-
### Display Options
@@ -245,7 +233,6 @@ terminal.
config value.
-
--message-format
fmthuman
or short
.
human
or <
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Cargo.lock
file is
@@ -303,7 +288,6 @@ See the cargo-fetch(1) command to download depend
offline.
May also be specified with the net.offline
config value.
-Z unstable-options
flag to enable (see
-
### Miscellaneous Options
default
is provided, it sets the value back to defaults.
Should not be 0.
-
--keep-going
cargo doc -j1 --keep-going
would definitely run both
builds, even if the one run first fails.May also be specified with the term.color
config value.
-
### Manifest Options
@@ -82,7 +79,6 @@ terminal.
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Cargo.lock
file is
@@ -106,7 +102,6 @@ See the cargo-fetch(1) command to download depend
offline.
May also be specified with the net.offline
config value.
-Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Fetch all dependencies:
diff --git a/src/doc/src/commands/cargo-fix.md b/src/doc/src/commands/cargo-fix.md
index 9211cf7f830..f53f44ae75f 100644
--- a/src/doc/src/commands/cargo-fix.md
+++ b/src/doc/src/commands/cargo-fix.md
@@ -1,5 +1,4 @@
# cargo-fix(1)
-
## NAME
cargo-fix --- Automatically fix lint warnings reported by rustc
@@ -127,12 +126,10 @@ double quotes around each pattern.
--all
--workspace
.--exclude
SPEC…--workspace
flag. This flag may be specified multiple times and supports
@@ -143,7 +140,6 @@ single quotes or double quotes around each pattern.--example
name…-r
--release
release
profile.
See also the --profile
option for choosing a specific profile by name.--profile
nameAs a special case, specifying the test
profile will also enable checking in
@@ -281,13 +272,11 @@ detail.
See the reference for more details on profiles.
--ignore-rust-version
rust-version
field.--timings=
fmtsCARGO_TARGET_DIR
environment variable, or the
build.target-dir
config value.
Defaults to target
in the root of the workspace.
-
### Display Options
@@ -351,7 +338,6 @@ terminal.
config value.
-
--message-format
fmthuman
or short
.
human
or <
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Cargo.lock
file is
@@ -409,7 +393,6 @@ See the cargo-fetch(1) command to download depend
offline.
May also be specified with the net.offline
config value.
-Z unstable-options
flag to enable (see
-
### Miscellaneous Options
default
is provided, it sets the value back to defaults.
Should not be 0.
-
--keep-going
cargo fix -j1 --keep-going
would definitely run both
builds, even if the one run first fails.May also be specified with the term.color
config value.
-
### Manifest Options
@@ -59,7 +58,6 @@ terminal.
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Cargo.lock
file is
@@ -83,7 +81,6 @@ See the cargo-fetch(1) command to download depend
offline.
May also be specified with the net.offline
config value.
-Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Create or update the lockfile for the current package or workspace:
diff --git a/src/doc/src/commands/cargo-init.md b/src/doc/src/commands/cargo-init.md
index 70b54802bab..fad9401e242 100644
--- a/src/doc/src/commands/cargo-init.md
+++ b/src/doc/src/commands/cargo-init.md
@@ -66,7 +66,6 @@ be restricted.
-
### Display Options
May also be specified with the term.color
config value.
-
-Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Create a binary Cargo package in the current directory:
diff --git a/src/doc/src/commands/cargo-install.md b/src/doc/src/commands/cargo-install.md
index db0ff10dbd0..8538bf0a84c 100644
--- a/src/doc/src/commands/cargo-install.md
+++ b/src/doc/src/commands/cargo-install.md
@@ -1,5 +1,4 @@
# cargo-install(1)
-
## NAME
cargo-install --- Build and install a Rust binary
@@ -26,7 +25,6 @@ The installation root is determined, in order of precedence:
- `CARGO_HOME` environment variable
- `$HOME/.cargo`
-
There are multiple sources from which a crate can be installed. The default
location is crates.io but the `--git`, `--path`, and `--registry` flags can
change this source. If the source contains more than one package (such as
@@ -170,12 +168,10 @@ which is defined by the registry.default
config key which defaults
crates-io
.
-
--index
index--target-dir
directoryCARGO_TARGET_DIR
environment variable, or the
@@ -234,7 +228,6 @@ of the local crate unless --target-dir
is specified.--debug
dev
profile instead of the release
profile.
See also the --profile
option for choosing a specific profile by name.--profile
option for choosing a specific profile by na
See the reference for more details on profiles.
-
--ignore-rust-version
rust-version
field.--timings=
fmtsMay also be specified with the net.offline
config value.
-
### Miscellaneous Options
@@ -314,7 +303,6 @@ parallel jobs to the number of logical CPUs plus provided value. If
a string default
is provided, it sets the value back to defaults.
Should not be 0.
-
--keep-going
cargo install -j1 --keep-going
would definitely run both
builds, even if the one run first fails.--message-format
fmthuman
or <
-Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Install or upgrade a package from crates.io:
diff --git a/src/doc/src/commands/cargo-locate-project.md b/src/doc/src/commands/cargo-locate-project.md
index 00491b398c6..163137307a5 100644
--- a/src/doc/src/commands/cargo-locate-project.md
+++ b/src/doc/src/commands/cargo-locate-project.md
@@ -68,7 +68,6 @@ terminal.
May also be specified with the term.color
config value.
-
### Manifest Options
@@ -78,7 +77,6 @@ terminal.
Cargo.toml
file. By default, Cargo searches for the
Cargo.toml
file in the current directory or any parent directory.-Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Display the path to the manifest based on the current directory:
diff --git a/src/doc/src/commands/cargo-login.md b/src/doc/src/commands/cargo-login.md
index ffdacfc5a08..4e45edbb8c6 100644
--- a/src/doc/src/commands/cargo-login.md
+++ b/src/doc/src/commands/cargo-login.md
@@ -41,7 +41,6 @@ files. If not specified, the default registry is used,
which is defined by the registry.default
config key which defaults to
crates-io
.
-
### Display Options
@@ -73,7 +72,6 @@ terminal.
May also be specified with the term.color
config value.
-
### Common Options
@@ -116,19 +114,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Save the token for the default registry:
diff --git a/src/doc/src/commands/cargo-logout.md b/src/doc/src/commands/cargo-logout.md
index 3cc50f6e929..a7d29ba4e0a 100644
--- a/src/doc/src/commands/cargo-logout.md
+++ b/src/doc/src/commands/cargo-logout.md
@@ -40,7 +40,6 @@ files. If not specified, the default registry is used,
which is defined by the registry.default
config key which defaults to
crates-io
.
-
### Display Options
@@ -72,7 +71,6 @@ terminal.
May also be specified with the term.color
config value.
-
### Common Options
@@ -115,19 +113,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Remove the default registry token:
diff --git a/src/doc/src/commands/cargo-metadata.md b/src/doc/src/commands/cargo-metadata.md
index 24b68d28317..82caa0dbe64 100644
--- a/src/doc/src/commands/cargo-metadata.md
+++ b/src/doc/src/commands/cargo-metadata.md
@@ -386,7 +386,6 @@ be specified multiple times, which enables all specified features.
-
### Display Options
May also be specified with the term.color
config value.
-
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Cargo.lock
file is
@@ -451,7 +448,6 @@ See the cargo-fetch(1) command to download depend
offline.
May also be specified with the net.offline
config value.
-Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Output JSON about the current package:
diff --git a/src/doc/src/commands/cargo-new.md b/src/doc/src/commands/cargo-new.md
index 4e9da6715a8..e10e2dcb9b1 100644
--- a/src/doc/src/commands/cargo-new.md
+++ b/src/doc/src/commands/cargo-new.md
@@ -61,7 +61,6 @@ be restricted.
-
### Display Options
May also be specified with the term.color
config value.
-
-Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Create a binary Cargo package in the given directory:
diff --git a/src/doc/src/commands/cargo-owner.md b/src/doc/src/commands/cargo-owner.md
index caf16f4b29e..7dba77cd9e0 100644
--- a/src/doc/src/commands/cargo-owner.md
+++ b/src/doc/src/commands/cargo-owner.md
@@ -57,12 +57,10 @@ variables of the form CARGO_REGISTRIES_NAME_TOKEN
where NAME<
of the registry in all capital letters.
-
--index
index
The URL of the registry index to use.
-
--registry
registry
Name of the registry to use. Registry names are defined in Cargo config
files. If not specified, the default registry is used,
@@ -70,7 +68,6 @@ which is defined by the registry.default
config key which defaults
crates-io
.
-
### Display Options
@@ -102,7 +99,6 @@ terminal.
May also be specified with the term.color
config value.
-
### Common Options
@@ -145,19 +141,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. List owners of a package:
diff --git a/src/doc/src/commands/cargo-package.md b/src/doc/src/commands/cargo-package.md
index 12684aa3cf6..376f8140b60 100644
--- a/src/doc/src/commands/cargo-package.md
+++ b/src/doc/src/commands/cargo-package.md
@@ -1,5 +1,4 @@
# cargo-package(1)
-
## NAME
cargo-package --- Assemble the local package into a distributable tarball
@@ -112,7 +111,6 @@ double quotes around each pattern.
-
--exclude
SPEC…
Exclude the specified packages. Must be used in conjunction with the
--workspace
flag. This flag may be specified multiple times and supports
@@ -123,7 +121,6 @@ single quotes or double quotes around each pattern.
-
### Compilation Options
@@ -139,7 +136,6 @@ target artifacts are placed in a separate directory. See the
build cache documentation for more details.
-
--target-dir
directory
- Directory for all generated artifacts and intermediate files. May also be
specified with the
CARGO_TARGET_DIR
environment variable, or the
@@ -147,7 +143,6 @@ specified with the CARGO_TARGET_DIR
environment variable, or the
Defaults to target
in the root of the workspace.
-
### Feature Selection
@@ -178,7 +173,6 @@ be specified multiple times, which enables all specified features.
-
### Manifest Options
@@ -188,7 +182,6 @@ be specified multiple times, which enables all specified features.
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
- Either of these flags requires that the
Cargo.lock
file is
@@ -213,7 +206,6 @@ offline.
May also be specified with the net.offline
config value.
-
### Miscellaneous Options
@@ -228,7 +220,6 @@ parallel jobs to the number of logical CPUs plus provided value. If
a string default
is provided, it sets the value back to defaults.
Should not be 0.
-
--keep-going
Build as many crates in the dependency graph as possible, rather than aborting
the build on the first one that fails to build.
@@ -238,7 +229,6 @@ one that succeeds (depending on which one of the two builds Cargo picked to run
first), whereas cargo package -j1 --keep-going
would definitely run both
builds, even if the one run first fails.
-
### Display Options
@@ -270,7 +260,6 @@ terminal.
May also be specified with the term.color
config value.
-
### Common Options
@@ -313,19 +302,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Create a compressed `.crate` file of the current package:
diff --git a/src/doc/src/commands/cargo-pkgid.md b/src/doc/src/commands/cargo-pkgid.md
index d7e507506b0..52d3bb78d6a 100644
--- a/src/doc/src/commands/cargo-pkgid.md
+++ b/src/doc/src/commands/cargo-pkgid.md
@@ -75,7 +75,6 @@ terminal.
May also be specified with the term.color
config value.
-
### Manifest Options
@@ -87,7 +86,6 @@ terminal.
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Either of these flags requires that the Cargo.lock
file is
@@ -112,7 +110,6 @@ offline.
May also be specified with the net.offline
config value.
-
### Common Options
@@ -155,19 +152,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Retrieve package specification for `foo` package:
diff --git a/src/doc/src/commands/cargo-publish.md b/src/doc/src/commands/cargo-publish.md
index bc84e61c08a..873c3e68668 100644
--- a/src/doc/src/commands/cargo-publish.md
+++ b/src/doc/src/commands/cargo-publish.md
@@ -1,5 +1,4 @@
# cargo-publish(1)
-
## NAME
cargo-publish --- Upload a package to the registry
@@ -52,7 +51,6 @@ variables of the form CARGO_REGISTRIES_NAME_TOKEN
where NAME<
of the registry in all capital letters.
-
--no-verify
Don’t verify the contents by building them.
@@ -65,7 +63,6 @@ of the registry in all capital letters.
The URL of the registry index to use.
-
--registry
registry
Name of the registry to publish to. Registry names are defined in Cargo
config files. If not specified, and there is a
@@ -93,7 +90,6 @@ format.
-
### Compilation Options
@@ -109,7 +105,6 @@ target artifacts are placed in a separate directory. See the
build cache documentation for more details.
-
--target-dir
directory
- Directory for all generated artifacts and intermediate files. May also be
specified with the
CARGO_TARGET_DIR
environment variable, or the
@@ -117,7 +112,6 @@ specified with the CARGO_TARGET_DIR
environment variable, or the
Defaults to target
in the root of the workspace.
-
### Feature Selection
@@ -148,7 +142,6 @@ be specified multiple times, which enables all specified features.
-
### Manifest Options
@@ -158,7 +151,6 @@ be specified multiple times, which enables all specified features.
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
- Either of these flags requires that the
Cargo.lock
file is
@@ -183,7 +175,6 @@ offline.
May also be specified with the net.offline
config value.
-
### Miscellaneous Options
@@ -198,7 +189,6 @@ parallel jobs to the number of logical CPUs plus provided value. If
a string default
is provided, it sets the value back to defaults.
Should not be 0.
-
--keep-going
Build as many crates in the dependency graph as possible, rather than aborting
the build on the first one that fails to build.
@@ -208,7 +198,6 @@ one that succeeds (depending on which one of the two builds Cargo picked to run
first), whereas cargo publish -j1 --keep-going
would definitely run both
builds, even if the one run first fails.
-
### Display Options
@@ -240,7 +229,6 @@ terminal.
May also be specified with the term.color
config value.
-
### Common Options
@@ -283,19 +271,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Publish the current package:
diff --git a/src/doc/src/commands/cargo-remove.md b/src/doc/src/commands/cargo-remove.md
index 9e97b533a46..81f677e1975 100644
--- a/src/doc/src/commands/cargo-remove.md
+++ b/src/doc/src/commands/cargo-remove.md
@@ -1,5 +1,4 @@
# cargo-remove(1)
-
## NAME
cargo-remove --- Remove dependencies from a Cargo.toml manifest file
@@ -72,7 +71,6 @@ terminal.
May also be specified with the term.color
config value.
-
### Manifest Options
@@ -83,7 +81,6 @@ terminal.
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Either of these flags requires that the Cargo.lock
file is
@@ -107,7 +104,6 @@ See the cargo-fetch(1) command to download depend
offline.
May also be specified with the net.offline
config value.
-
### Package Selection
@@ -161,19 +157,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Remove `regex` as a dependency
diff --git a/src/doc/src/commands/cargo-run.md b/src/doc/src/commands/cargo-run.md
index 8c24b83529e..ada7864791b 100644
--- a/src/doc/src/commands/cargo-run.md
+++ b/src/doc/src/commands/cargo-run.md
@@ -1,5 +1,4 @@
# cargo-run(1)
-
## NAME
cargo-run --- Run the current package
@@ -37,7 +36,6 @@ format.
-
### Target Selection
When no target selection options are given, `cargo run` will run the binary
@@ -85,7 +83,6 @@ be specified multiple times, which enables all specified features.
-
### Compilation Options
@@ -101,26 +98,22 @@ target artifacts are placed in a separate directory. See the
build cache documentation for more details.
-
-r
--release
- Run optimized artifacts with the
release
profile.
See also the --profile
option for choosing a specific profile by name.
-
--profile
name
- Run with the given profile.
See the reference for more details on profiles.
-
--ignore-rust-version
- Run 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
@@ -139,7 +132,6 @@ information about timing information.
-
### Output Options
@@ -151,7 +143,6 @@ specified with the CARGO_TARGET_DIR
environment variable, or the
build.target-dir
config value.
Defaults to target
in the root of the workspace.
-
### Display Options
@@ -185,7 +176,6 @@ terminal.
config value.
-
--message-format
fmt
The output format for diagnostic messages. Can be specified multiple times
and consists of comma-separated values. Valid values:
@@ -209,7 +199,6 @@ coming from rustc are still emitted. Cannot be used with human
or <
-
### Manifest Options
@@ -221,7 +210,6 @@ coming from rustc are still emitted. Cannot be used with human
or <
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Either of these flags requires that the Cargo.lock
file is
@@ -246,7 +234,6 @@ offline.
May also be specified with the net.offline
config value.
-
### Common Options
@@ -289,7 +276,6 @@ requires the -Z unstable-options
flag to enable (see
-
### Miscellaneous Options
@@ -302,7 +288,6 @@ parallel jobs to the number of logical CPUs plus provided value. If
a string default
is provided, it sets the value back to defaults.
Should not be 0.
-
--keep-going
- Build as many crates in the dependency graph as possible, rather than aborting
the build on the first one that fails to build.
@@ -312,7 +297,6 @@ one that succeeds (depending on which one of the two builds Cargo picked to run
first), whereas
cargo run -j1 --keep-going
would definitely run both
builds, even if the one run first fails.
-
## ENVIRONMENT
@@ -320,13 +304,11 @@ builds, even if the one run first fails.
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Build the local package and run its main target (assuming only one binary):
diff --git a/src/doc/src/commands/cargo-rustc.md b/src/doc/src/commands/cargo-rustc.md
index f58c8fddaee..ff6b39abe91 100644
--- a/src/doc/src/commands/cargo-rustc.md
+++ b/src/doc/src/commands/cargo-rustc.md
@@ -1,5 +1,4 @@
# cargo-rustc(1)
-
## NAME
cargo-rustc --- Compile the current package, and pass extra options to the compiler
@@ -46,7 +45,6 @@ format.
-
### Target Selection
When no target selection options are given, `cargo rustc` will build all
@@ -61,7 +59,6 @@ is set when the integration test is built so that it can use the
[`env` macro](https://doc.rust-lang.org/std/macro.env.html) to locate the
executable.
-
Passing target selection flags will build only the specified
targets.
@@ -85,7 +82,6 @@ and supports common Unix glob patterns.
Build all binary targets.
-
--example
name…
Build the specified example. This flag may be specified multiple times
and supports common Unix glob patterns.
@@ -131,7 +127,6 @@ manifest settings for the target.
-
### Feature Selection
The feature flags allow you to control which features are enabled. When no
@@ -160,7 +155,6 @@ be specified multiple times, which enables all specified features.
-
### Compilation Options
@@ -176,14 +170,12 @@ target artifacts are placed in a separate directory. See the
build cache documentation for more details.
-
-r
--release
- Build optimized artifacts with the
release
profile.
See also the --profile
option for choosing a specific profile by name.
-
--profile
name
- Build with the given profile.
The rustc
subcommand will treat the following named profiles with special behaviors:
@@ -205,7 +197,6 @@ similar to the test
profile.
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
@@ -224,7 +215,6 @@ information about timing information.
-
--crate-type
crate-type
- Build for the given crate type. This flag accepts a comma-separated list of
1 or more crate types, of which the allowed values are the same as
crate-type
@@ -247,7 +237,6 @@ specified with the CARGO_TARGET_DIR
environment variable, or the
build.target-dir
config value.
Defaults to target
in the root of the workspace.
-
### Display Options
@@ -281,7 +270,6 @@ terminal.
config value.
-
--message-format
fmt
The output format for diagnostic messages. Can be specified multiple times
and consists of comma-separated values. Valid values:
@@ -305,7 +293,6 @@ coming from rustc are still emitted. Cannot be used with human
or <
-
### Manifest Options
@@ -317,7 +304,6 @@ coming from rustc are still emitted. Cannot be used with human
or <
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Either of these flags requires that the Cargo.lock
file is
@@ -342,7 +328,6 @@ offline.
May also be specified with the net.offline
config value.
-
### Common Options
@@ -385,7 +370,6 @@ requires the -Z unstable-options
flag to enable (see
-
### Miscellaneous Options
@@ -398,7 +382,6 @@ parallel jobs to the number of logical CPUs plus provided value. If
a string default
is provided, it sets the value back to defaults.
Should not be 0.
-
--keep-going
- Build as many crates in the dependency graph as possible, rather than aborting
the build on the first one that fails to build.
@@ -408,13 +391,11 @@ one that succeeds (depending on which one of the two builds Cargo picked to run
first), whereas
cargo rustc -j1 --keep-going
would definitely run both
builds, even if the one run first fails.
-
--future-incompat-report
- Displays a future-incompat report for any future-incompatible warnings
produced during execution of this command
See cargo-report(1)
-
## ENVIRONMENT
@@ -422,13 +403,11 @@ produced during execution of this command
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Check if your package (not including dependencies) uses unsafe code:
diff --git a/src/doc/src/commands/cargo-rustdoc.md b/src/doc/src/commands/cargo-rustdoc.md
index 2e0e67d972c..79e56c8a879 100644
--- a/src/doc/src/commands/cargo-rustdoc.md
+++ b/src/doc/src/commands/cargo-rustdoc.md
@@ -1,5 +1,4 @@
# cargo-rustdoc(1)
-
## NAME
cargo-rustdoc --- Build a package's documentation, using specified custom flags
@@ -59,7 +58,6 @@ format.
-
### Target Selection
When no target selection options are given, `cargo rustdoc` will document all
@@ -90,7 +88,6 @@ and supports common Unix glob patterns.
Document all binary targets.
-
--example
name…
Document the specified example. This flag may be specified multiple times
and supports common Unix glob patterns.
@@ -136,7 +133,6 @@ manifest settings for the target.
-
### Feature Selection
The feature flags allow you to control which features are enabled. When no
@@ -165,7 +161,6 @@ be specified multiple times, which enables all specified features.
-
### Compilation Options
@@ -181,26 +176,22 @@ target artifacts are placed in a separate directory. See the
build cache documentation for more details.
-
-r
--release
- Document optimized artifacts with the
release
profile.
See also the --profile
option for choosing a specific profile by name.
-
--profile
name
- Document with the given profile.
See the reference for more details on profiles.
-
--ignore-rust-version
- Document 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
@@ -219,7 +210,6 @@ information about timing information.
-
### Output Options
@@ -231,7 +221,6 @@ specified with the CARGO_TARGET_DIR
environment variable, or the
build.target-dir
config value.
Defaults to target
in the root of the workspace.
-
### Display Options
@@ -264,7 +253,6 @@ terminal.
config value.
-
--message-format
fmt
The output format for diagnostic messages. Can be specified multiple times
and consists of comma-separated values. Valid values:
@@ -287,7 +275,6 @@ JSON diagnostics coming from rustc. Cargo’s own JSON diagnostics and others
coming from rustc are still emitted. Cannot be used with human
or short
.
-
### Manifest Options
@@ -298,7 +285,6 @@ coming from rustc are still emitted. Cannot be used with human
or <
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Either of these flags requires that the Cargo.lock
file is
@@ -322,7 +308,6 @@ See the cargo-fetch(1) command to download depend
offline.
May also be specified with the net.offline
config value.
-
### Common Options
@@ -365,7 +350,6 @@ requires the -Z unstable-options
flag to enable (see
-
### Miscellaneous Options
@@ -378,7 +362,6 @@ parallel jobs to the number of logical CPUs plus provided value. If
a string default
is provided, it sets the value back to defaults.
Should not be 0.
-
--keep-going
- Build as many crates in the dependency graph as possible, rather than aborting
the build on the first one that fails to build.
@@ -388,7 +371,6 @@ one that succeeds (depending on which one of the two builds Cargo picked to run
first), whereas
cargo rustdoc -j1 --keep-going
would definitely run both
builds, even if the one run first fails.
-
## ENVIRONMENT
@@ -396,13 +378,11 @@ builds, even if the one run first fails.
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Build documentation with custom CSS included from a given file:
diff --git a/src/doc/src/commands/cargo-search.md b/src/doc/src/commands/cargo-search.md
index 1a98f286916..9bfdfeadb10 100644
--- a/src/doc/src/commands/cargo-search.md
+++ b/src/doc/src/commands/cargo-search.md
@@ -28,7 +28,6 @@ for copying into a `Cargo.toml` manifest.
The URL of the registry index to use.
-
--registry
registry
Name of the registry to use. Registry names are defined in Cargo config
files. If not specified, the default registry is used,
@@ -36,7 +35,6 @@ which is defined by the registry.default
config key which defaults
crates-io
.
-
### Display Options
@@ -68,7 +66,6 @@ terminal.
May also be specified with the term.color
config value.
-
### Common Options
@@ -111,19 +108,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Search for a package from crates.io:
diff --git a/src/doc/src/commands/cargo-test.md b/src/doc/src/commands/cargo-test.md
index ef978570ea8..54a9f28cc4f 100644
--- a/src/doc/src/commands/cargo-test.md
+++ b/src/doc/src/commands/cargo-test.md
@@ -1,5 +1,4 @@
# cargo-test(1)
-
## NAME
cargo-test --- Execute unit and integration tests of a package
@@ -88,7 +87,6 @@ as a whole.
-
### Package Selection
By default, when no package selection options are given, the packages selected
@@ -117,12 +115,10 @@ double quotes around each pattern.
Test all members in the workspace.
-
--all
Deprecated alias for --workspace
.
-
--exclude
SPEC…
Exclude the specified packages. Must be used in conjunction with the
--workspace
flag. This flag may be specified multiple times and supports
@@ -133,7 +129,6 @@ single quotes or double quotes around each pattern.
-
### Target Selection
When no target selection options are given, `cargo test` will build the
@@ -173,7 +168,6 @@ is set when the integration test is built so that it can use the
[`env` macro](https://doc.rust-lang.org/std/macro.env.html) to locate the
executable.
-
Passing target selection flags will test only the specified
targets.
@@ -197,7 +191,6 @@ and supports common Unix glob patterns.
Test all binary targets.
-
--example
name…
Test the specified example. This flag may be specified multiple times
and supports common Unix glob patterns.
@@ -243,7 +236,6 @@ manifest settings for the target.
-
--doc
@@ -281,7 +273,6 @@ be specified multiple times, which enables all specified features.
-
### Compilation Options
@@ -297,26 +288,22 @@ target artifacts are placed in a separate directory. See the
build cache documentation for more details.
-
-r
--release
- Test optimized artifacts with the
release
profile.
See also the --profile
option for choosing a specific profile by name.
-
--profile
name
- Test with the given profile.
See the reference for more details on profiles.
-
--ignore-rust-version
- Test 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
@@ -335,7 +322,6 @@ information about timing information.
-
### Output Options
@@ -347,7 +333,6 @@ specified with the CARGO_TARGET_DIR
environment variable, or the
build.target-dir
config value.
Defaults to target
in the root of the workspace.
-
### Display Options
@@ -387,7 +372,6 @@ terminal.
config value.
-
--message-format
fmt
The output format for diagnostic messages. Can be specified multiple times
and consists of comma-separated values. Valid values:
@@ -411,7 +395,6 @@ coming from rustc are still emitted. Cannot be used with human
or <
-
### Manifest Options
@@ -423,7 +406,6 @@ coming from rustc are still emitted. Cannot be used with human
or <
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Either of these flags requires that the Cargo.lock
file is
@@ -448,7 +430,6 @@ offline.
May also be specified with the net.offline
config value.
-
### Common Options
@@ -491,7 +472,6 @@ requires the -Z unstable-options
flag to enable (see
-
### Miscellaneous Options
The `--jobs` argument affects the building of the test executable but does not
@@ -511,14 +491,12 @@ parallel jobs to the number of logical CPUs plus provided value. If
a string default
is provided, it sets the value back to defaults.
Should not be 0.
-
--future-incompat-report
Displays a future-incompat report for any future-incompatible warnings
produced during execution of this command
See cargo-report(1)
-
While `cargo test` involves compilation, it does not provide a `--keep-going`
@@ -534,13 +512,11 @@ build test binaries separately. For example:
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Execute all the unit and integration tests of the current package:
diff --git a/src/doc/src/commands/cargo-tree.md b/src/doc/src/commands/cargo-tree.md
index 948c3581cae..2bbe546da67 100644
--- a/src/doc/src/commands/cargo-tree.md
+++ b/src/doc/src/commands/cargo-tree.md
@@ -1,5 +1,4 @@
# cargo-tree(1)
-
## NAME
cargo-tree --- Display a tree visualization of a dependency graph
@@ -204,7 +203,6 @@ double quotes around each pattern.
-
--exclude
SPEC…
Exclude the specified packages. Must be used in conjunction with the
--workspace
flag. This flag may be specified multiple times and supports
@@ -215,7 +213,6 @@ single quotes or double quotes around each pattern.
-
### Manifest Options
@@ -225,7 +222,6 @@ single quotes or double quotes around each pattern.
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
- Either of these flags requires that the
Cargo.lock
file is
@@ -250,7 +246,6 @@ offline.
May also be specified with the net.offline
config value.
-
### Feature Selection
@@ -281,7 +276,6 @@ be specified multiple times, which enables all specified features.
-
### Display Options
@@ -313,7 +307,6 @@ terminal.
config value.
-
### Common Options
@@ -356,19 +349,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Display the tree for the package in the current directory:
diff --git a/src/doc/src/commands/cargo-uninstall.md b/src/doc/src/commands/cargo-uninstall.md
index e9c73b0cd56..3d150b7c0a1 100644
--- a/src/doc/src/commands/cargo-uninstall.md
+++ b/src/doc/src/commands/cargo-uninstall.md
@@ -25,7 +25,6 @@ The installation root is determined, in order of precedence:
- `CARGO_HOME` environment variable
- `$HOME/.cargo`
-
## OPTIONS
### Install Options
@@ -78,7 +77,6 @@ terminal.
config value.
-
### Common Options
@@ -121,19 +119,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Uninstall a previously installed package.
diff --git a/src/doc/src/commands/cargo-update.md b/src/doc/src/commands/cargo-update.md
index 234998faa5e..ef44e487bb0 100644
--- a/src/doc/src/commands/cargo-update.md
+++ b/src/doc/src/commands/cargo-update.md
@@ -85,7 +85,6 @@ terminal.
May also be specified with the term.color
config value.
-
### Manifest Options
@@ -97,7 +96,6 @@ terminal.
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Either of these flags requires that the Cargo.lock
file is
@@ -122,7 +120,6 @@ offline.
May also be specified with the net.offline
config value.
-
### Common Options
@@ -165,19 +162,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Update all dependencies in the lockfile:
diff --git a/src/doc/src/commands/cargo-vendor.md b/src/doc/src/commands/cargo-vendor.md
index 84560a688fe..5e137bd938a 100644
--- a/src/doc/src/commands/cargo-vendor.md
+++ b/src/doc/src/commands/cargo-vendor.md
@@ -62,7 +62,6 @@ only a subset of the packages have changed.
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Either of these flags requires that the Cargo.lock
file is
@@ -87,7 +86,6 @@ offline.
May also be specified with the net.offline
config value.
-
### Display Options
@@ -121,7 +119,6 @@ terminal.
config value.
-
### Common Options
@@ -164,19 +161,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Vendor all dependencies into a local "vendor" folder
diff --git a/src/doc/src/commands/cargo-verify-project.md b/src/doc/src/commands/cargo-verify-project.md
index 2a1d5d950be..e27724b92ae 100644
--- a/src/doc/src/commands/cargo-verify-project.md
+++ b/src/doc/src/commands/cargo-verify-project.md
@@ -52,7 +52,6 @@ terminal.
config value.
-
### Manifest Options
@@ -64,7 +63,6 @@ terminal.
Cargo.toml
file in the current directory or any parent directory.
-
--frozen
--locked
Either of these flags requires that the Cargo.lock
file is
@@ -89,7 +87,6 @@ offline.
May also be specified with the net.offline
config value.
-
### Common Options
@@ -132,13 +129,11 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: The workspace is OK.
diff --git a/src/doc/src/commands/cargo-yank.md b/src/doc/src/commands/cargo-yank.md
index c0be657bc47..0c505205ce3 100644
--- a/src/doc/src/commands/cargo-yank.md
+++ b/src/doc/src/commands/cargo-yank.md
@@ -101,12 +101,10 @@ variables of the form CARGO_REGISTRIES_NAME_TOKEN
where NAME<
of the registry in all capital letters.
-
--index
index
The URL of the registry index to use.
-
--registry
registry
Name of the registry to use. Registry names are defined in Cargo config
files. If not specified, the default registry is used,
@@ -114,7 +112,6 @@ which is defined by the registry.default
config key which defaults
crates-io
.
-
### Display Options
@@ -148,7 +145,6 @@ terminal.
config value.
-
### Common Options
@@ -191,19 +187,16 @@ requires the -Z unstable-options
flag to enable (see
-
## ENVIRONMENT
See [the reference](../reference/environment-variables.html) for
details on environment variables that Cargo reads.
-
## EXIT STATUS
* `0`: Cargo succeeded.
* `101`: Cargo failed to complete.
-
## EXAMPLES
1. Yank a crate from the index: