diff --git a/Cargo.lock b/Cargo.lock index 0f1ec59afc4..7fddba1a6e5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -72,9 +72,9 @@ dependencies = [ [[package]] name = "anstyle-query" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3a318f1f38d2418400f8209655bfd825785afd25aa30bb7ba6cc792e4596748" +checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648" dependencies = [ "windows-sys 0.52.0", ] @@ -304,7 +304,7 @@ dependencies = [ "shell-escape", "snapbox", "supports-hyperlinks", - "syn 2.0.39", + "syn 2.0.41", "tar", "tempfile", "time", @@ -659,9 +659,9 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.5.8" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200" +checksum = "14c3242926edf34aec4ac3a77108ad4854bffaa2e4ddc1824124ce59231302d5" dependencies = [ "cfg-if", "crossbeam-utils", @@ -669,9 +669,9 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef" +checksum = "fca89a0e215bab21874660c67903c5f143333cab1da83d041c7ded6053774751" dependencies = [ "cfg-if", "crossbeam-epoch", @@ -680,22 +680,21 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.15" +version = "0.9.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7" +checksum = "2d2fe95351b870527a5d09bf563ed3c97c0cffb87cf1c78a591bf48bb218d9aa" dependencies = [ "autocfg", "cfg-if", "crossbeam-utils", "memoffset", - "scopeguard", ] [[package]] name = "crossbeam-utils" -version = "0.8.16" +version = "0.8.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" +checksum = "c06d96137f14f244c37f989d9fff8f95e6c18b918e71f36638f8c49112e4c78f" dependencies = [ "cfg-if", ] @@ -865,9 +864,9 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "erased-serde" -version = "0.3.31" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c138974f9d5e7fe373eb04df7cae98833802ae4b11c24ac7039a21d5af4b26c" +checksum = "a3286168faae03a0e583f6fde17c02c8b8bba2dcc2061d0f7817066e5b0af706" dependencies = [ "serde", ] @@ -1114,7 +1113,7 @@ dependencies = [ "bstr", "btoi", "gix-date", - "itoa 1.0.9", + "itoa 1.0.10", "thiserror", "winnow", ] @@ -1238,7 +1237,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "468dfbe411f335f01525a1352271727f8e7772075a93fa747260f502086b30be" dependencies = [ "bstr", - "itoa 1.0.9", + "itoa 1.0.10", "thiserror", "time", ] @@ -1394,7 +1393,7 @@ dependencies = [ "gix-lock", "gix-object", "gix-traverse", - "itoa 1.0.9", + "itoa 1.0.10", "libc", "memmap2", "rustix", @@ -1421,7 +1420,7 @@ checksum = "02a5bcaf6704d9354a3071cede7e77d366a5980c7352e102e2c2f9b645b1d3ae" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.41", ] [[package]] @@ -1453,7 +1452,7 @@ dependencies = [ "gix-features 0.36.1", "gix-hash", "gix-validate", - "itoa 1.0.9", + "itoa 1.0.10", "smallvec", "thiserror", "winnow", @@ -1828,16 +1827,16 @@ checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" [[package]] name = "handlebars" -version = "3.5.5" +version = "4.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4498fc115fa7d34de968184e473529abb40eeb6be8bc5f7faba3d08c316cb3e3" +checksum = "faa67bab9ff362228eb3d00bd024a4965d8231bbb7921167f0cfa66c6626b225" dependencies = [ "log", "pest", "pest_derive", - "quick-error 2.0.1", "serde", "serde_json", + "thiserror", "walkdir", ] @@ -1874,9 +1873,9 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hkdf" -version = "0.12.3" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "791a029f6b9fc27657f6f188ec6e5e43f6911f6f878e0dc5501396e09809d437" +checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" dependencies = [ "hmac", ] @@ -2008,9 +2007,9 @@ checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" [[package]] name = "itoa" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" +checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" [[package]] name = "jobserver" @@ -2059,9 +2058,9 @@ checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" [[package]] name = "libc" -version = "0.2.150" +version = "0.2.151" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c" +checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4" [[package]] name = "libgit2-sys" @@ -2299,9 +2298,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.18.0" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "oorandom" @@ -2343,7 +2342,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.41", ] [[package]] @@ -2468,9 +2467,9 @@ dependencies = [ [[package]] name = "pasetors" -version = "0.6.7" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba765699a309908d55950919a3445e9491453e89b2587b1b2abe4143a48894c0" +checksum = "6b36d47c66f2230dd1b7143d9afb2b4891879020210eddf2ccb624e529b96dba" dependencies = [ "ct-codecs", "ed25519-compact", @@ -2539,7 +2538,7 @@ dependencies = [ "pest_meta", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.41", ] [[package]] @@ -2679,12 +2678,6 @@ version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" -[[package]] -name = "quick-error" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" - [[package]] name = "quote" version = "1.0.33" @@ -2872,9 +2865,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.26" +version = "0.38.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9470c4bf8246c8daf25f9598dca807fb6510347b1e1cfa55749113850c79d88a" +checksum = "72e572a5e8ca657d7366229cdde4bd14c4eb5499a9573d4d366fe1b599daa316" dependencies = [ "bitflags 2.4.1", "errno", @@ -2890,16 +2883,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb3dcc6e454c328bb824492db107ab7c0ae8fcffe4ad210136ef014458c1bc4f" dependencies = [ "fnv", - "quick-error 1.2.3", + "quick-error", "tempfile", "wait-timeout", ] [[package]] name = "ryu" -version = "1.0.15" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" +checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" [[package]] name = "same-file" @@ -2989,9 +2982,9 @@ dependencies = [ [[package]] name = "serde-untagged" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ba3ac59c62f51b75a6bfad8840b2ede4a81ff5cc23c200221ef479ae75a4aa3" +checksum = "c38885c2d9d8f038478583b7acf8f6029d020ba4b20e9dcaeb8799d67a04aae7" dependencies = [ "erased-serde", "serde", @@ -3015,7 +3008,7 @@ checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.41", ] [[package]] @@ -3033,7 +3026,7 @@ version = "1.0.108" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b" dependencies = [ - "itoa 1.0.9", + "itoa 1.0.10", "ryu", "serde", ] @@ -3130,9 +3123,9 @@ checksum = "4dccd0940a2dcdf68d092b8cbab7dc0ad8fa938bf95787e1b916b0e3d0e8e970" [[package]] name = "snapbox" -version = "0.4.14" +version = "0.4.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b377c0b6e4715c116473d8e40d51e3fa5b0a2297ca9b2a931ba800667b259ed" +checksum = "c4f1976ee8fd1be27d5f72c98be0aac4397a882a4736935d47418a5fbbd12042" dependencies = [ "anstream", "anstyle", @@ -3216,9 +3209,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.39" +version = "2.0.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a" +checksum = "44c8b28c477cc3bf0e7966561e3460130e1255f7a1cf71931075f1c5e7a7e269" dependencies = [ "proc-macro2", "quote", @@ -3287,7 +3280,7 @@ checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.41", ] [[package]] @@ -3307,7 +3300,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4a34ab300f2dee6e562c10a046fc05e358b29f9bf92277f30c3c8d82275f6f5" dependencies = [ "deranged", - "itoa 1.0.9", + "itoa 1.0.10", "libc", "num_threads", "powerfmt", @@ -3409,7 +3402,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.41", ] [[package]] @@ -3480,9 +3473,9 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.13" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" +checksum = "6f2528f27a9eb2b21e69c95319b30bd0efd85d09c379741b0f78ea1d86be2416" [[package]] name = "unicode-bom" @@ -3685,7 +3678,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.41", "wasm-bindgen-shared", ] @@ -3707,7 +3700,7 @@ checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.41", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -3902,9 +3895,9 @@ checksum = "dff9641d1cd4be8d1a070daf9e3773c5f67e78b4d9d42263020c057706765c04" [[package]] name = "winnow" -version = "0.5.25" +version = "0.5.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7e87b8dfbe3baffbe687eef2e164e32286eff31a5ee16463ce03d991643ec94" +checksum = "6c830786f7720c2fd27a1a0e27a709dbd3c4d009b56d098fc742d4f4eab91fe2" dependencies = [ "memchr", ] @@ -3936,22 +3929,22 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.7.29" +version = "0.7.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d075cf85bbb114e933343e087b92f2146bac0d55b534cbb8188becf0039948e" +checksum = "1c4061bedbb353041c12f413700357bec76df2c7e2ca8e4df8bac24c6bf68e3d" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.7.29" +version = "0.7.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86cd5ca076997b97ef09d3ad65efe811fa68c9e874cb636ccb211223a813b0c2" +checksum = "b3c129550b3e6de3fd0ba67ba5c81818f9805e58b8d7fee80a3a59d2c9fc601a" dependencies = [ "proc-macro2", "quote", - "syn 2.0.39", + "syn 2.0.41", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 4480679cc36..67965d14f0e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ git2-curl = "0.19.0" gix = { version = "0.56.0", default-features = false, features = ["blocking-http-transport-curl", "progress-tree", "revision"] } gix-features-for-configuration-only = { version = "0.35.0", package = "gix-features", features = [ "parallel" ] } glob = "0.3.1" -handlebars = { version = "3.5.5", features = ["dir_source"] } +handlebars = { version = "4.5.0", features = ["dir_source"] } hex = "0.4.3" hmac = "0.12.1" home = "0.5.5" diff --git a/crates/mdman/doc/out/mdman.md b/crates/mdman/doc/out/mdman.md index 9d2fe932684..8f6f1018c72 100644 --- a/crates/mdman/doc/out/mdman.md +++ b/crates/mdman/doc/out/mdman.md @@ -49,7 +49,6 @@ man page: - Other helpers include: - `{{lower value}}` Converts the given value to lowercase. - ## OPTIONS
registry.default
config key which defaults
crates-io
.
-
May also be specified with the 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
specMay 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: