From 31538550a97a4db7d8dbd9f27712693f176325be Mon Sep 17 00:00:00 2001
From: Enyium <123484196+Enyium@users.noreply.github.com>
Date: Tue, 7 Feb 2023 01:40:29 +0100
Subject: [PATCH] Ensure em dashes are recognizable in markup.
---
src/doc/contrib/src/architecture/codebase.md | 52 ++--
src/doc/contrib/src/architecture/packages.md | 16 +-
src/doc/contrib/src/issues.md | 10 +-
src/doc/contrib/src/tests/writing.md | 16 +-
src/doc/man/cargo-add.md | 2 +-
src/doc/man/cargo-bench.md | 4 +-
src/doc/man/cargo-build.md | 2 +-
src/doc/man/cargo-check.md | 2 +-
src/doc/man/cargo-clean.md | 2 +-
src/doc/man/cargo-doc.md | 2 +-
src/doc/man/cargo-fetch.md | 2 +-
src/doc/man/cargo-fix.md | 2 +-
src/doc/man/cargo-generate-lockfile.md | 2 +-
src/doc/man/cargo-help.md | 2 +-
src/doc/man/cargo-init.md | 2 +-
src/doc/man/cargo-install.md | 2 +-
src/doc/man/cargo-locate-project.md | 2 +-
src/doc/man/cargo-login.md | 2 +-
src/doc/man/cargo-metadata.md | 2 +-
src/doc/man/cargo-new.md | 2 +-
src/doc/man/cargo-owner.md | 2 +-
src/doc/man/cargo-package.md | 2 +-
src/doc/man/cargo-pkgid.md | 2 +-
src/doc/man/cargo-publish.md | 2 +-
src/doc/man/cargo-remove.md | 2 +-
src/doc/man/cargo-report.md | 4 +-
src/doc/man/cargo-run.md | 2 +-
src/doc/man/cargo-rustc.md | 8 +-
src/doc/man/cargo-rustdoc.md | 2 +-
src/doc/man/cargo-search.md | 2 +-
src/doc/man/cargo-test.md | 6 +-
src/doc/man/cargo-tree.md | 36 +--
src/doc/man/cargo-uninstall.md | 2 +-
src/doc/man/cargo-update.md | 2 +-
src/doc/man/cargo-vendor.md | 2 +-
src/doc/man/cargo-verify-project.md | 2 +-
src/doc/man/cargo-version.md | 2 +-
src/doc/man/cargo-yank.md | 2 +-
src/doc/man/cargo.md | 2 +-
src/doc/src/appendix/glossary.md | 24 +-
src/doc/src/commands/cargo-add.md | 2 +-
src/doc/src/commands/cargo-bench.md | 4 +-
src/doc/src/commands/cargo-build.md | 2 +-
src/doc/src/commands/cargo-check.md | 2 +-
src/doc/src/commands/cargo-clean.md | 2 +-
src/doc/src/commands/cargo-doc.md | 2 +-
src/doc/src/commands/cargo-fetch.md | 2 +-
src/doc/src/commands/cargo-fix.md | 2 +-
.../src/commands/cargo-generate-lockfile.md | 2 +-
src/doc/src/commands/cargo-help.md | 2 +-
src/doc/src/commands/cargo-init.md | 2 +-
src/doc/src/commands/cargo-install.md | 2 +-
src/doc/src/commands/cargo-locate-project.md | 2 +-
src/doc/src/commands/cargo-login.md | 2 +-
src/doc/src/commands/cargo-metadata.md | 2 +-
src/doc/src/commands/cargo-new.md | 2 +-
src/doc/src/commands/cargo-owner.md | 2 +-
src/doc/src/commands/cargo-package.md | 2 +-
src/doc/src/commands/cargo-pkgid.md | 2 +-
src/doc/src/commands/cargo-publish.md | 2 +-
src/doc/src/commands/cargo-remove.md | 2 +-
src/doc/src/commands/cargo-report.md | 4 +-
src/doc/src/commands/cargo-run.md | 2 +-
src/doc/src/commands/cargo-rustc.md | 8 +-
src/doc/src/commands/cargo-rustdoc.md | 2 +-
src/doc/src/commands/cargo-search.md | 2 +-
src/doc/src/commands/cargo-test.md | 6 +-
src/doc/src/commands/cargo-tree.md | 36 +--
src/doc/src/commands/cargo-uninstall.md | 2 +-
src/doc/src/commands/cargo-update.md | 2 +-
src/doc/src/commands/cargo-vendor.md | 2 +-
src/doc/src/commands/cargo-verify-project.md | 2 +-
src/doc/src/commands/cargo-version.md | 2 +-
src/doc/src/commands/cargo-yank.md | 2 +-
src/doc/src/commands/cargo.md | 2 +-
src/doc/src/index.md | 6 +-
.../src/reference/build-script-examples.md | 10 +-
src/doc/src/reference/build-scripts.md | 32 +--
.../src/reference/environment-variables.md | 240 +++++++++---------
src/doc/src/reference/features.md | 2 +-
src/doc/src/reference/manifest.md | 90 +++----
src/doc/src/reference/profiles.md | 8 +-
src/doc/src/reference/resolver.md | 2 +-
src/doc/src/reference/semver.md | 6 +-
src/doc/src/reference/source-replacement.md | 4 +-
.../src/reference/specifying-dependencies.md | 4 +-
src/doc/src/reference/timings.md | 6 +-
src/doc/src/reference/unstable.md | 102 ++++----
src/doc/src/reference/workspaces.md | 22 +-
89 files changed, 444 insertions(+), 444 deletions(-)
diff --git a/src/doc/contrib/src/architecture/codebase.md b/src/doc/contrib/src/architecture/codebase.md
index 7e3b077fa92b..45c6e0e2f1d0 100644
--- a/src/doc/contrib/src/architecture/codebase.md
+++ b/src/doc/contrib/src/architecture/codebase.md
@@ -3,73 +3,73 @@
This is a very high-level overview of the Cargo codebase.
* [`src/bin/cargo`](https://github.com/rust-lang/cargo/tree/master/src/bin/cargo)
- — Cargo is split in a library and a binary. This is the binary side that
+ --- Cargo is split in a library and a binary. This is the binary side that
handles argument parsing, and then calls into the library to perform the
appropriate subcommand. Each Cargo subcommand is a separate module here. See
[SubCommands](subcommands.md).
* [`src/cargo/ops`](https://github.com/rust-lang/cargo/tree/master/src/cargo/ops)
- — Every major operation is implemented here. This is where the binary CLI
+ --- Every major operation is implemented here. This is where the binary CLI
usually calls into to perform the appropriate action.
* [`src/cargo/ops/cargo_compile/mod.rs`](https://github.com/rust-lang/cargo/blob/master/src/cargo/ops/cargo_compile/mod.rs)
- — This is the entry point for all the compilation commands. This is a
+ --- This is the entry point for all the compilation commands. This is a
good place to start if you want to follow how compilation starts and
flows to completion.
* [`src/cargo/core/resolver`](https://github.com/rust-lang/cargo/tree/master/src/cargo/core/resolver)
- — This is the dependency and feature resolvers.
+ --- This is the dependency and feature resolvers.
* [`src/cargo/core/compiler`](https://github.com/rust-lang/cargo/tree/master/src/cargo/core/compiler)
- — This is the code responsible for running `rustc` and `rustdoc`.
+ --- This is the code responsible for running `rustc` and `rustdoc`.
* [`src/cargo/core/compiler/build_context/mod.rs`](https://github.com/rust-lang/cargo/blob/master/src/cargo/core/compiler/build_context/mod.rs)
- — The `BuildContext` is the result of the "front end" of the build
+ --- The `BuildContext` is the result of the "front end" of the build
process. This contains the graph of work to perform and any settings
necessary for `rustc`. After this is built, the next stage of building
is handled in `Context`.
* [`src/cargo/core/compiler/context`](https://github.com/rust-lang/cargo/blob/master/src/cargo/core/compiler/context/mod.rs)
- — The `Context` is the mutable state used during the build process. This
+ --- The `Context` is the mutable state used during the build process. This
is the core of the build process, and everything is coordinated through
this.
* [`src/cargo/core/compiler/fingerprint.rs`](https://github.com/rust-lang/cargo/blob/master/src/cargo/core/compiler/fingerprint.rs)
- — The `fingerprint` module contains all the code that handles detecting
+ --- The `fingerprint` module contains all the code that handles detecting
if a crate needs to be recompiled.
* [`src/cargo/core/source`](https://github.com/rust-lang/cargo/tree/master/src/cargo/core/source)
- — The `Source` trait is an abstraction over different sources of packages.
+ --- The `Source` trait is an abstraction over different sources of packages.
Sources are uniquely identified by a `SourceId`. Sources are implemented in
the
[`src/cargo/sources`](https://github.com/rust-lang/cargo/tree/master/src/cargo/sources)
directory.
* [`src/cargo/util`](https://github.com/rust-lang/cargo/tree/master/src/cargo/util)
- — This directory contains generally-useful utility modules.
+ --- This directory contains generally-useful utility modules.
* [`src/cargo/util/config`](https://github.com/rust-lang/cargo/tree/master/src/cargo/util/config)
- — This directory contains the config parser. It makes heavy use of
+ --- This directory contains the config parser. It makes heavy use of
[serde](https://serde.rs/) to merge and translate config values. The
`Config` is usually accessed from the
[`Workspace`](https://github.com/rust-lang/cargo/blob/master/src/cargo/core/workspace.rs),
though references to it are scattered around for more convenient access.
* [`src/cargo/util/toml`](https://github.com/rust-lang/cargo/tree/master/src/cargo/util/toml)
- — This directory contains the code for parsing `Cargo.toml` files.
+ --- This directory contains the code for parsing `Cargo.toml` files.
* [`src/cargo/ops/lockfile.rs`](https://github.com/rust-lang/cargo/blob/master/src/cargo/ops/lockfile.rs)
- — This is where `Cargo.lock` files are loaded and saved.
+ --- This is where `Cargo.lock` files are loaded and saved.
* [`src/doc`](https://github.com/rust-lang/cargo/tree/master/src/doc)
- — This directory contains Cargo's documentation and man pages.
+ --- This directory contains Cargo's documentation and man pages.
* [`src/etc`](https://github.com/rust-lang/cargo/tree/master/src/etc)
- — These are files that get distributed in the `etc` directory in the Rust release.
+ --- These are files that get distributed in the `etc` directory in the Rust release.
The man pages are auto-generated by a script in the `src/doc` directory.
* [`crates`](https://github.com/rust-lang/cargo/tree/master/crates)
- — A collection of independent crates used by Cargo.
+ --- A collection of independent crates used by Cargo.
## Extra crates
@@ -77,32 +77,32 @@ Some functionality is split off into separate crates, usually in the
[`crates`](https://github.com/rust-lang/cargo/tree/master/crates) directory.
* [`cargo-platform`](https://github.com/rust-lang/cargo/tree/master/crates/cargo-platform)
- — This library handles parsing `cfg` expressions.
+ --- This library handles parsing `cfg` expressions.
* [`cargo-test-macro`](https://github.com/rust-lang/cargo/tree/master/crates/cargo-test-macro)
- — This is a proc-macro used by the test suite to define tests. More
+ --- This is a proc-macro used by the test suite to define tests. More
information can be found at [`cargo_test`
attribute](../tests/writing.md#cargo_test-attribute).
* [`cargo-test-support`](https://github.com/rust-lang/cargo/tree/master/crates/cargo-test-support)
- — This contains a variety of code to support [writing
+ --- This contains a variety of code to support [writing
tests](../tests/writing.md).
* [`cargo-util`](https://github.com/rust-lang/cargo/tree/master/crates/cargo-util)
- — This contains general utility code that is shared between cargo and the
+ --- This contains general utility code that is shared between cargo and the
testsuite.
* [`crates-io`](https://github.com/rust-lang/cargo/tree/master/crates/crates-io)
- — This contains code for accessing the crates.io API.
+ --- This contains code for accessing the crates.io API.
* [`credential`](https://github.com/rust-lang/cargo/tree/master/crates/credential)
- — This subdirectory contains several packages for implementing the
+ --- This subdirectory contains several packages for implementing the
experimental
[credential-process](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#credential-process)
feature.
-* [`home`](https://github.com/rust-lang/cargo/tree/master/crates/home) — This library is shared between cargo and rustup and is used for finding their home directories.
+* [`home`](https://github.com/rust-lang/cargo/tree/master/crates/home) --- This library is shared between cargo and rustup and is used for finding their home directories.
This is not directly depended upon with a `path` dependency; cargo uses the version from crates.io.
It is intended to be versioned and published independently of Rust's release system.
Whenever a change needs to be made, bump the version in Cargo.toml and `cargo publish` it manually, and then update cargo's `Cargo.toml` to depend on the new version.
-* [`mdman`](https://github.com/rust-lang/cargo/tree/master/crates/mdman) —
- This is a utility for generating cargo's man pages. See [Building the man
+* [`mdman`](https://github.com/rust-lang/cargo/tree/master/crates/mdman)
+ --- This is a utility for generating cargo's man pages. See [Building the man
pages](https://github.com/rust-lang/cargo/tree/master/src/doc#building-the-man-pages)
for more information.
* [`resolver-tests`](https://github.com/rust-lang/cargo/tree/master/crates/resolver-tests)
- — This is a dedicated package that defines tests for the [dependency
+ --- This is a dedicated package that defines tests for the [dependency
resolver](../architecture/packages.md#resolver).
diff --git a/src/doc/contrib/src/architecture/packages.md b/src/doc/contrib/src/architecture/packages.md
index dc7deefbb8d8..626714bf4689 100644
--- a/src/doc/contrib/src/architecture/packages.md
+++ b/src/doc/contrib/src/architecture/packages.md
@@ -16,27 +16,27 @@ actually compiled by `rustc`.
There are several data structures that are important to understand how
packages are found and loaded:
-* [`Package`] — A package, which is a `Cargo.toml` manifest and its associated
+* [`Package`] --- A package, which is a `Cargo.toml` manifest and its associated
source files.
- * [`PackageId`] — A unique identifier for a package.
-* [`Source`] — An abstraction for something that can fetch packages (a remote
+ * [`PackageId`] --- A unique identifier for a package.
+* [`Source`] --- An abstraction for something that can fetch packages (a remote
registry, a git repo, the local filesystem, etc.). Check out the [source
implementations] for all the details about registries, indexes, git
dependencies, etc.
- * [`SourceId`] — A unique identifier for a source.
-* [`SourceMap`] — Map of all available sources.
-* [`PackageRegistry`] — This is the main interface for how the dependency
+ * [`SourceId`] --- A unique identifier for a source.
+* [`SourceMap`] --- Map of all available sources.
+* [`PackageRegistry`] --- This is the main interface for how the dependency
resolver finds packages. It contains the `SourceMap`, and handles things
like the `[patch]` table. The `Registry` trait provides a generic interface
to the `PackageRegistry`, but this is only used for providing an alternate
implementation of the `PackageRegistry` for testing. The dependency resolver
sends a query to the `PackageRegistry` to "get me all packages that match
this dependency declaration".
-* [`Summary`] — A summary is a subset of a [`Manifest`], and is essentially
+* [`Summary`] --- A summary is a subset of a [`Manifest`], and is essentially
the information that can be found in a registry index. Queries against the
`PackageRegistry` yields a `Summary`. The resolver uses the summary
information to build the dependency graph.
-* [`PackageSet`] — Contains all of the `Package` objects. This works with the
+* [`PackageSet`] --- Contains all of the `Package` objects. This works with the
[`Downloads`] struct to coordinate downloading packages. It has a reference
to the `SourceMap` to get the `Source` objects which tell the `Downloads`
struct which URLs to fetch.
diff --git a/src/doc/contrib/src/issues.md b/src/doc/contrib/src/issues.md
index 30e2d8316f2b..8fc69544c618 100644
--- a/src/doc/contrib/src/issues.md
+++ b/src/doc/contrib/src/issues.md
@@ -26,11 +26,11 @@ If you file in the wrong tracker, someone will either transfer it to the
correct one or ask you to move it. Some other repositories that may be
relevant are:
-* [`rust-lang/rust`] — Home for the [`rustc`] compiler and [`rustdoc`].
-* [`rust-lang/rustup`] — Home for the [`rustup`] toolchain installer.
-* [`rust-lang/rustfmt`] — Home for the `rustfmt` tool, which also includes `cargo fmt`.
-* [`rust-lang/rust-clippy`] — Home for the `clippy` tool, which also includes `cargo clippy`.
-* [`rust-lang/crates.io`] — Home for the [crates.io] website.
+* [`rust-lang/rust`] --- Home for the [`rustc`] compiler and [`rustdoc`].
+* [`rust-lang/rustup`] --- Home for the [`rustup`] toolchain installer.
+* [`rust-lang/rustfmt`] --- Home for the `rustfmt` tool, which also includes `cargo fmt`.
+* [`rust-lang/rust-clippy`] --- Home for the `clippy` tool, which also includes `cargo clippy`.
+* [`rust-lang/crates.io`] --- Home for the [crates.io] website.
Issues with [`cargo fix`] can be tricky to know where they should be filed,
since the fixes are driven by `rustc`, processed by [`rustfix`], and the
diff --git a/src/doc/contrib/src/tests/writing.md b/src/doc/contrib/src/tests/writing.md
index 51fc6a74e531..b08d8b925419 100644
--- a/src/doc/contrib/src/tests/writing.md
+++ b/src/doc/contrib/src/tests/writing.md
@@ -77,34 +77,34 @@ They are listed in parentheses separated with commas, such as:
The options it supports are:
-* `nightly` — This will cause the test to be ignored if not running on the nightly toolchain.
+* `nightly` --- This will cause the test to be ignored if not running on the nightly toolchain.
This is useful for tests that use unstable options in `rustc` or `rustdoc`.
These tests are run in Cargo's CI, but are disabled in rust-lang/rust's CI due to the difficulty of updating both repos simultaneously.
A `reason` field is required to explain why it is nightly-only.
-* `build_std_real` — This is a "real" `-Zbuild-std` test (in the `build_std` integration test).
+* `build_std_real` --- This is a "real" `-Zbuild-std` test (in the `build_std` integration test).
This only runs on nightly, and only if the environment variable `CARGO_RUN_BUILD_STD_TESTS` is set (these tests on run on Linux).
-* `build_std_mock` — This is a "mock" `-Zbuild-std` test (which uses a mock standard library).
+* `build_std_mock` --- This is a "mock" `-Zbuild-std` test (which uses a mock standard library).
This only runs on nightly, and is disabled for windows-gnu.
-* `requires_` — This indicates a command that is required to be installed to be run.
+* `requires_` --- This indicates a command that is required to be installed to be run.
For example, `requires_rustfmt` means the test will only run if the executable `rustfmt` is installed.
These tests are *always* run on CI.
This is mainly used to avoid requiring contributors from having every dependency installed.
-* `>=1.64` — This indicates that the test will only run with the given version of `rustc` or newer.
+* `>=1.64` --- This indicates that the test will only run with the given version of `rustc` or newer.
This can be used when a new `rustc` feature has been stabilized that the test depends on.
If this is specified, a `reason` is required to explain why it is being checked.
-* `public_network_test` — This tests contacts the public internet.
+* `public_network_test` --- This tests contacts the public internet.
These tests are disabled unless the `CARGO_PUBLIC_NETWORK_TESTS` environment variable is set.
Use of this should be *extremely rare*, please avoid using it if possible.
The hosts it contacts should have a relatively high confidence that they are reliable and stable (such as github.com), especially in CI.
The tests should be carefully considered for developer security and privacy as well.
-* `container_test` — This indicates that it is a test that uses Docker.
+* `container_test` --- This indicates that it is a test that uses Docker.
These tests are disabled unless the `CARGO_CONTAINER_TESTS` environment variable is set.
This requires that you have Docker installed.
The SSH tests also assume that you have OpenSSH installed.
These should work on Linux, macOS, and Windows where possible.
Unfortunately these tests are not run in CI for macOS or Windows (no Docker on macOS, and Windows does not support Linux images).
See [`crates/cargo-test-support/src/containers.rs`](https://github.com/rust-lang/cargo/blob/master/crates/cargo-test-support/src/containers.rs) for more on writing these tests.
-* `ignore_windows="reason"` — Indicates that the test should be ignored on windows for the given reason.
+* `ignore_windows="reason"` --- Indicates that the test should be ignored on windows for the given reason.
#### Testing Nightly Features
diff --git a/src/doc/man/cargo-add.md b/src/doc/man/cargo-add.md
index cca9fb5b47f0..07f8fd225d71 100644
--- a/src/doc/man/cargo-add.md
+++ b/src/doc/man/cargo-add.md
@@ -4,7 +4,7 @@
## NAME
-cargo-add - Add dependencies to a Cargo.toml manifest file
+cargo-add --- Add dependencies to a Cargo.toml manifest file
## SYNOPSIS
diff --git a/src/doc/man/cargo-bench.md b/src/doc/man/cargo-bench.md
index 1155ac50b92c..32c98dadaebe 100644
--- a/src/doc/man/cargo-bench.md
+++ b/src/doc/man/cargo-bench.md
@@ -5,7 +5,7 @@
## NAME
-cargo-bench - Execute benchmarks of a package
+cargo-bench --- Execute benchmarks of a package
## SYNOPSIS
@@ -69,7 +69,7 @@ debugger.
When no target selection options are given, `cargo bench` will build the
following targets of the selected packages:
-- lib — used to link with binaries and benchmarks
+- lib --- used to link with binaries and benchmarks
- bins (only if benchmark targets are built and required features are
available)
- lib as a benchmark
diff --git a/src/doc/man/cargo-build.md b/src/doc/man/cargo-build.md
index 3b71ae6a3171..98614444323c 100644
--- a/src/doc/man/cargo-build.md
+++ b/src/doc/man/cargo-build.md
@@ -4,7 +4,7 @@
## NAME
-cargo-build - Compile the current package
+cargo-build --- Compile the current package
## SYNOPSIS
diff --git a/src/doc/man/cargo-check.md b/src/doc/man/cargo-check.md
index 44a3d0fdc4d9..055adff0d087 100644
--- a/src/doc/man/cargo-check.md
+++ b/src/doc/man/cargo-check.md
@@ -4,7 +4,7 @@
## NAME
-cargo-check - Check the current package
+cargo-check --- Check the current package
## SYNOPSIS
diff --git a/src/doc/man/cargo-clean.md b/src/doc/man/cargo-clean.md
index be1fa1fce454..3222f7bb04b3 100644
--- a/src/doc/man/cargo-clean.md
+++ b/src/doc/man/cargo-clean.md
@@ -4,7 +4,7 @@
## NAME
-cargo-clean - Remove generated artifacts
+cargo-clean --- Remove generated artifacts
## SYNOPSIS
diff --git a/src/doc/man/cargo-doc.md b/src/doc/man/cargo-doc.md
index f8f517d9ae70..9d5b77648935 100644
--- a/src/doc/man/cargo-doc.md
+++ b/src/doc/man/cargo-doc.md
@@ -4,7 +4,7 @@
## NAME
-cargo-doc - Build a package's documentation
+cargo-doc --- Build a package's documentation
## SYNOPSIS
diff --git a/src/doc/man/cargo-fetch.md b/src/doc/man/cargo-fetch.md
index 69ce103cae30..c31166a9b51c 100644
--- a/src/doc/man/cargo-fetch.md
+++ b/src/doc/man/cargo-fetch.md
@@ -5,7 +5,7 @@
## NAME
-cargo-fetch - Fetch dependencies of a package from the network
+cargo-fetch --- Fetch dependencies of a package from the network
## SYNOPSIS
diff --git a/src/doc/man/cargo-fix.md b/src/doc/man/cargo-fix.md
index e78ae34fd2e0..64fe299446c6 100644
--- a/src/doc/man/cargo-fix.md
+++ b/src/doc/man/cargo-fix.md
@@ -4,7 +4,7 @@
## NAME
-cargo-fix - Automatically fix lint warnings reported by rustc
+cargo-fix --- Automatically fix lint warnings reported by rustc
## SYNOPSIS
diff --git a/src/doc/man/cargo-generate-lockfile.md b/src/doc/man/cargo-generate-lockfile.md
index a2b963cef440..3a2f52b39449 100644
--- a/src/doc/man/cargo-generate-lockfile.md
+++ b/src/doc/man/cargo-generate-lockfile.md
@@ -2,7 +2,7 @@
## NAME
-cargo-generate-lockfile - Generate the lockfile for a package
+cargo-generate-lockfile --- Generate the lockfile for a package
## SYNOPSIS
diff --git a/src/doc/man/cargo-help.md b/src/doc/man/cargo-help.md
index edd8bc0cb1a0..4a5a8f51575c 100644
--- a/src/doc/man/cargo-help.md
+++ b/src/doc/man/cargo-help.md
@@ -2,7 +2,7 @@
## NAME
-cargo-help - Get help for a Cargo command
+cargo-help --- Get help for a Cargo command
## SYNOPSIS
diff --git a/src/doc/man/cargo-init.md b/src/doc/man/cargo-init.md
index bdb5a82702e6..cd8e623ca1ca 100644
--- a/src/doc/man/cargo-init.md
+++ b/src/doc/man/cargo-init.md
@@ -2,7 +2,7 @@
## NAME
-cargo-init - Create a new Cargo package in an existing directory
+cargo-init --- Create a new Cargo package in an existing directory
## SYNOPSIS
diff --git a/src/doc/man/cargo-install.md b/src/doc/man/cargo-install.md
index 118e3efdf038..56922bfc0c23 100644
--- a/src/doc/man/cargo-install.md
+++ b/src/doc/man/cargo-install.md
@@ -4,7 +4,7 @@
## NAME
-cargo-install - Build and install a Rust binary
+cargo-install --- Build and install a Rust binary
## SYNOPSIS
diff --git a/src/doc/man/cargo-locate-project.md b/src/doc/man/cargo-locate-project.md
index 87cf9919f528..4ebf36d7d7c6 100644
--- a/src/doc/man/cargo-locate-project.md
+++ b/src/doc/man/cargo-locate-project.md
@@ -2,7 +2,7 @@
## NAME
-cargo-locate-project - Print a JSON representation of a Cargo.toml file's location
+cargo-locate-project --- Print a JSON representation of a Cargo.toml file's location
## SYNOPSIS
diff --git a/src/doc/man/cargo-login.md b/src/doc/man/cargo-login.md
index 0e361ab74a04..11c663c46c6d 100644
--- a/src/doc/man/cargo-login.md
+++ b/src/doc/man/cargo-login.md
@@ -2,7 +2,7 @@
## NAME
-cargo-login - Save an API token from the registry locally
+cargo-login --- Save an API token from the registry locally
## SYNOPSIS
diff --git a/src/doc/man/cargo-metadata.md b/src/doc/man/cargo-metadata.md
index 5197f03c2002..4f9032d56cca 100644
--- a/src/doc/man/cargo-metadata.md
+++ b/src/doc/man/cargo-metadata.md
@@ -2,7 +2,7 @@
## NAME
-cargo-metadata - Machine-readable metadata about the current package
+cargo-metadata --- Machine-readable metadata about the current package
## SYNOPSIS
diff --git a/src/doc/man/cargo-new.md b/src/doc/man/cargo-new.md
index d0ca91812243..ea6182ac37dc 100644
--- a/src/doc/man/cargo-new.md
+++ b/src/doc/man/cargo-new.md
@@ -2,7 +2,7 @@
## NAME
-cargo-new - Create a new Cargo package
+cargo-new --- Create a new Cargo package
## SYNOPSIS
diff --git a/src/doc/man/cargo-owner.md b/src/doc/man/cargo-owner.md
index 3787a4de0456..327916968874 100644
--- a/src/doc/man/cargo-owner.md
+++ b/src/doc/man/cargo-owner.md
@@ -2,7 +2,7 @@
## NAME
-cargo-owner - Manage the owners of a crate on the registry
+cargo-owner --- Manage the owners of a crate on the registry
## SYNOPSIS
diff --git a/src/doc/man/cargo-package.md b/src/doc/man/cargo-package.md
index d7f35c6234c8..2000353cc473 100644
--- a/src/doc/man/cargo-package.md
+++ b/src/doc/man/cargo-package.md
@@ -5,7 +5,7 @@
## NAME
-cargo-package - Assemble the local package into a distributable tarball
+cargo-package --- Assemble the local package into a distributable tarball
## SYNOPSIS
diff --git a/src/doc/man/cargo-pkgid.md b/src/doc/man/cargo-pkgid.md
index 761eede1dce7..47ed133f9b53 100644
--- a/src/doc/man/cargo-pkgid.md
+++ b/src/doc/man/cargo-pkgid.md
@@ -2,7 +2,7 @@
## NAME
-cargo-pkgid - Print a fully qualified package specification
+cargo-pkgid --- Print a fully qualified package specification
## SYNOPSIS
diff --git a/src/doc/man/cargo-publish.md b/src/doc/man/cargo-publish.md
index 560e3c104728..4ccb5b5298a8 100644
--- a/src/doc/man/cargo-publish.md
+++ b/src/doc/man/cargo-publish.md
@@ -4,7 +4,7 @@
## NAME
-cargo-publish - Upload a package to the registry
+cargo-publish --- Upload a package to the registry
## SYNOPSIS
diff --git a/src/doc/man/cargo-remove.md b/src/doc/man/cargo-remove.md
index b0150c1414eb..0722e6e53de2 100644
--- a/src/doc/man/cargo-remove.md
+++ b/src/doc/man/cargo-remove.md
@@ -4,7 +4,7 @@
## NAME
-cargo-remove - Remove dependencies from a Cargo.toml manifest file
+cargo-remove --- Remove dependencies from a Cargo.toml manifest file
## SYNOPSIS
diff --git a/src/doc/man/cargo-report.md b/src/doc/man/cargo-report.md
index a505a014a33d..ba33617dbb0b 100644
--- a/src/doc/man/cargo-report.md
+++ b/src/doc/man/cargo-report.md
@@ -2,7 +2,7 @@
## NAME
-cargo-report - Generate and display various kinds of reports
+cargo-report --- Generate and display various kinds of reports
## SYNOPSIS
@@ -10,7 +10,7 @@ cargo-report - Generate and display various kinds of reports
### DESCRIPTION
-Displays a report of the given _type_ - currently, only `future-incompat` is supported
+Displays a report of the given _type_ --- currently, only `future-incompat` is supported
## OPTIONS
diff --git a/src/doc/man/cargo-run.md b/src/doc/man/cargo-run.md
index 4ec09f58da14..4b6b935242e2 100644
--- a/src/doc/man/cargo-run.md
+++ b/src/doc/man/cargo-run.md
@@ -3,7 +3,7 @@
## NAME
-cargo-run - Run the current package
+cargo-run --- Run the current package
## SYNOPSIS
diff --git a/src/doc/man/cargo-rustc.md b/src/doc/man/cargo-rustc.md
index 3ce5c193ab08..f3b37234c0ce 100644
--- a/src/doc/man/cargo-rustc.md
+++ b/src/doc/man/cargo-rustc.md
@@ -4,7 +4,7 @@
## NAME
-cargo-rustc - Compile the current package, and pass extra options to the compiler
+cargo-rustc --- Compile the current package, and pass extra options to the compiler
## SYNOPSIS
@@ -55,13 +55,13 @@ Build with the given profile.
The `rustc` subcommand will treat the following named profiles with special behaviors:
-* `check` — Builds in the same way as the {{man "cargo-check" 1}} command with
+* `check` --- Builds in the same way as the {{man "cargo-check" 1}} command with
the `dev` profile.
-* `test` — Builds in the same way as the {{man "cargo-test" 1}} command,
+* `test` --- Builds in the same way as the {{man "cargo-test" 1}} command,
enabling building in test mode which will enable tests and enable the `test`
cfg option. See [rustc
tests](https://doc.rust-lang.org/rustc/tests/index.html) for more detail.
-* `bench` — Builds in the same was as the {{man "cargo-bench" 1}} command,
+* `bench` --- Builds in the same was as the {{man "cargo-bench" 1}} command,
similar to the `test` profile.
See the [the reference](../reference/profiles.html) for more details on profiles.
diff --git a/src/doc/man/cargo-rustdoc.md b/src/doc/man/cargo-rustdoc.md
index 6c38780f3244..23be579e9c63 100644
--- a/src/doc/man/cargo-rustdoc.md
+++ b/src/doc/man/cargo-rustdoc.md
@@ -4,7 +4,7 @@
## NAME
-cargo-rustdoc - Build a package's documentation, using specified custom flags
+cargo-rustdoc --- Build a package's documentation, using specified custom flags
## SYNOPSIS
diff --git a/src/doc/man/cargo-search.md b/src/doc/man/cargo-search.md
index 5c7bcac3c2f3..f3d87cb12784 100644
--- a/src/doc/man/cargo-search.md
+++ b/src/doc/man/cargo-search.md
@@ -2,7 +2,7 @@
## NAME
-cargo-search - Search packages in crates.io
+cargo-search --- Search packages in crates.io
## SYNOPSIS
diff --git a/src/doc/man/cargo-test.md b/src/doc/man/cargo-test.md
index 7419b5323979..0b6da16ca5ee 100644
--- a/src/doc/man/cargo-test.md
+++ b/src/doc/man/cargo-test.md
@@ -5,7 +5,7 @@
## NAME
-cargo-test - Execute unit and integration tests of a package
+cargo-test --- Execute unit and integration tests of a package
## SYNOPSIS
@@ -70,10 +70,10 @@ on writing doc tests.
When no target selection options are given, `cargo test` will build the
following targets of the selected packages:
-- lib — used to link with binaries, examples, integration tests, and doc tests
+- lib --- used to link with binaries, examples, integration tests, and doc tests
- bins (only if integration tests are built and required features are
available)
-- examples — to ensure they compile
+- examples --- to ensure they compile
- lib as a unit test
- bins as unit tests
- integration tests
diff --git a/src/doc/man/cargo-tree.md b/src/doc/man/cargo-tree.md
index 51b1d9e0e14d..3e1da20df254 100644
--- a/src/doc/man/cargo-tree.md
+++ b/src/doc/man/cargo-tree.md
@@ -4,7 +4,7 @@
## NAME
-cargo-tree - Display a tree visualization of a dependency graph
+cargo-tree --- Display a tree visualization of a dependency graph
## SYNOPSIS
@@ -119,16 +119,16 @@ only one instance is built.
{{#option "`-e` _kinds_" "`--edges` _kinds_" }}
The dependency kinds to display. Takes a comma separated list of values:
-- `all` — Show all edge kinds.
-- `normal` — Show normal dependencies.
-- `build` — Show build dependencies.
-- `dev` — Show development dependencies.
-- `features` — Show features enabled by each dependency. If this is the only
+- `all` --- Show all edge kinds.
+- `normal` --- Show normal dependencies.
+- `build` --- Show build dependencies.
+- `dev` --- Show development dependencies.
+- `features` --- Show features enabled by each dependency. If this is the only
kind given, then it will automatically include the other dependency kinds.
-- `no-normal` — Do not include normal dependencies.
-- `no-build` — Do not include build dependencies.
-- `no-dev` — Do not include development dependencies.
-- `no-proc-macro` — Do not include procedural macro dependencies.
+- `no-normal` --- Do not include normal dependencies.
+- `no-build` --- Do not include build dependencies.
+- `no-dev` --- Do not include development dependencies.
+- `no-proc-macro` --- Do not include procedural macro dependencies.
The `normal`, `build`, `dev`, and `all` dependency kinds cannot be mixed with
`no-normal`, `no-build`, or `no-dev` dependency kinds.
@@ -158,19 +158,19 @@ Set the format string for each package. The default is "{p}".
This is an arbitrary string which will be used to display each package. The following
strings will be replaced with the corresponding value:
-- `{p}` — The package name.
-- `{l}` — The package license.
-- `{r}` — The package repository URL.
-- `{f}` — Comma-separated list of package features that are enabled.
-- `{lib}` — The name, as used in a `use` statement, of the package's library.
+- `{p}` --- The package name.
+- `{l}` --- The package license.
+- `{r}` --- The package repository URL.
+- `{f}` --- Comma-separated list of package features that are enabled.
+- `{lib}` --- The name, as used in a `use` statement, of the package's library.
{{/option}}
{{#option "`--prefix` _prefix_" }}
Sets how each line is displayed. The _prefix_ value can be one of:
-- `indent` (default) — Shows each line indented as a tree.
-- `depth` — Show as a list, with the numeric depth printed before each entry.
-- `none` — Show as a flat list.
+- `indent` (default) --- Shows each line indented as a tree.
+- `depth` --- Show as a list, with the numeric depth printed before each entry.
+- `none` --- Show as a flat list.
{{/option}}
{{/options}}
diff --git a/src/doc/man/cargo-uninstall.md b/src/doc/man/cargo-uninstall.md
index 73c50c7a1def..b2ebd097fc3a 100644
--- a/src/doc/man/cargo-uninstall.md
+++ b/src/doc/man/cargo-uninstall.md
@@ -2,7 +2,7 @@
## NAME
-cargo-uninstall - Remove a Rust binary
+cargo-uninstall --- Remove a Rust binary
## SYNOPSIS
diff --git a/src/doc/man/cargo-update.md b/src/doc/man/cargo-update.md
index 54aa90ae8467..e91606a6a096 100644
--- a/src/doc/man/cargo-update.md
+++ b/src/doc/man/cargo-update.md
@@ -2,7 +2,7 @@
## NAME
-cargo-update - Update dependencies as recorded in the local lock file
+cargo-update --- Update dependencies as recorded in the local lock file
## SYNOPSIS
diff --git a/src/doc/man/cargo-vendor.md b/src/doc/man/cargo-vendor.md
index 9fd977951e75..b30d0d8dd22b 100644
--- a/src/doc/man/cargo-vendor.md
+++ b/src/doc/man/cargo-vendor.md
@@ -2,7 +2,7 @@
## NAME
-cargo-vendor - Vendor all dependencies locally
+cargo-vendor --- Vendor all dependencies locally
## SYNOPSIS
diff --git a/src/doc/man/cargo-verify-project.md b/src/doc/man/cargo-verify-project.md
index 99b749087b71..8b334fb14c58 100644
--- a/src/doc/man/cargo-verify-project.md
+++ b/src/doc/man/cargo-verify-project.md
@@ -2,7 +2,7 @@
## NAME
-cargo-verify-project - Check correctness of crate manifest
+cargo-verify-project --- Check correctness of crate manifest
## SYNOPSIS
diff --git a/src/doc/man/cargo-version.md b/src/doc/man/cargo-version.md
index c6e4535323d0..9bbadc9ea501 100644
--- a/src/doc/man/cargo-version.md
+++ b/src/doc/man/cargo-version.md
@@ -2,7 +2,7 @@
## NAME
-cargo-version - Show version information
+cargo-version --- Show version information
## SYNOPSIS
diff --git a/src/doc/man/cargo-yank.md b/src/doc/man/cargo-yank.md
index 3b9185d6a65f..8ad28ef243f2 100644
--- a/src/doc/man/cargo-yank.md
+++ b/src/doc/man/cargo-yank.md
@@ -2,7 +2,7 @@
## NAME
-cargo-yank - Remove a pushed crate from the index
+cargo-yank --- Remove a pushed crate from the index
## SYNOPSIS
diff --git a/src/doc/man/cargo.md b/src/doc/man/cargo.md
index 9f2c622da085..2d71fc4d75cd 100644
--- a/src/doc/man/cargo.md
+++ b/src/doc/man/cargo.md
@@ -2,7 +2,7 @@
## NAME
-cargo - The Rust package manager
+cargo --- The Rust package manager
## SYNOPSIS
diff --git a/src/doc/src/appendix/glossary.md b/src/doc/src/appendix/glossary.md
index 9ac0561e972b..143736851b56 100644
--- a/src/doc/src/appendix/glossary.md
+++ b/src/doc/src/appendix/glossary.md
@@ -107,7 +107,7 @@ and version which is used for specifying dependencies between packages.
A package contains multiple [*targets*](#target), each of which is a
[*crate*](#crate). The `Cargo.toml` file describes the type of the crates
(binary or library) within the package, along with some metadata about each
-one -- how each is to be built, what their direct dependencies are, etc., as
+one --- how each is to be built, what their direct dependencies are, etc., as
described throughout this book.
The *package root* is the directory where the package's `Cargo.toml` manifest
@@ -162,14 +162,14 @@ A *source* is a provider that contains [*crates*](#crate) that may be included
as dependencies for a [*package*](#package). There are several kinds of
sources:
-- **Registry source** — See [registry](#registry).
-- **Local registry source** — A set of crates stored as compressed files on
+- **Registry source** --- See [registry](#registry).
+- **Local registry source** --- A set of crates stored as compressed files on
the filesystem. See [Local Registry Sources].
-- **Directory source** — A set of crates stored as uncompressed files on the
+- **Directory source** --- A set of crates stored as uncompressed files on the
filesystem. See [Directory Sources].
-- **Path source** — An individual package located on the filesystem (such as a
+- **Path source** --- An individual package located on the filesystem (such as a
[path dependency]) or a set of multiple packages (such as [path overrides]).
-- **Git source** — Packages located in a git repository (such as a [git
+- **Git source** --- Packages located in a git repository (such as a [git
dependency] or [git source]).
See [Source Replacement] for more information.
@@ -182,21 +182,21 @@ See [package ID specification](#package).
The meaning of the term *target* depends on the context:
-- **Cargo Target** — Cargo [*packages*](#package) consist of *targets* which
+- **Cargo Target** --- Cargo [*packages*](#package) consist of *targets* which
correspond to [*artifacts*](#artifact) that will be produced. Packages can
have library, binary, example, test, and benchmark targets. The
[list of targets][targets] are configured in the `Cargo.toml`
[*manifest*](#manifest), often inferred automatically by the [directory
layout] of the source files.
-- **Target Directory** — Cargo places all built artifacts and intermediate
+- **Target Directory** --- Cargo places all built artifacts and intermediate
files in the *target* directory. By default this is a directory named
`target` at the [*workspace*](#workspace) root, or the package root if not
using a workspace. The directory may be changed with the `--target-dir`
command-line option, the `CARGO_TARGET_DIR` [environment variable], or the
`build.target-dir` [config option].
-- **Target Architecture** — The OS and machine architecture for the built
+- **Target Architecture** --- The OS and machine architecture for the built
artifacts are typically referred to as a *target*.
-- **Target Triple** — A triple is a specific format for specifying a target
+- **Target Triple** --- A triple is a specific format for specifying a target
architecture. Triples may be referred to as a *target triple* which is the
architecture for the artifact produced, and the *host triple* which is the
architecture that the compiler is running on. The target triple can be
@@ -221,11 +221,11 @@ The meaning of the term *target* depends on the context:
Cargo *test targets* generate binaries which help verify proper operation and
correctness of code. There are two types of test artifacts:
-* **Unit test** — A *unit test* is an executable binary compiled directly from
+* **Unit test** --- A *unit test* is an executable binary compiled directly from
a library or a binary target. It contains the entire contents of the library
or binary code, and runs `#[test]` annotated functions, intended to verify
individual units of code.
-* **Integration test target** — An [*integration test
+* **Integration test target** --- An [*integration test
target*][integration-tests] is an executable binary compiled from a *test
target* which is a distinct [*crate*](#crate) whose source is located in the
`tests` directory or specified by the [`[[test]]` table][targets] in the
diff --git a/src/doc/src/commands/cargo-add.md b/src/doc/src/commands/cargo-add.md
index 3655384de8f1..a7bc7a965d34 100644
--- a/src/doc/src/commands/cargo-add.md
+++ b/src/doc/src/commands/cargo-add.md
@@ -4,7 +4,7 @@
## NAME
-cargo-add - Add dependencies to a Cargo.toml manifest file
+cargo-add --- Add dependencies to a Cargo.toml manifest file
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-bench.md b/src/doc/src/commands/cargo-bench.md
index b0ecf2159b74..da71326bdf0c 100644
--- a/src/doc/src/commands/cargo-bench.md
+++ b/src/doc/src/commands/cargo-bench.md
@@ -5,7 +5,7 @@
## NAME
-cargo-bench - Execute benchmarks of a package
+cargo-bench --- Execute benchmarks of a package
## SYNOPSIS
@@ -126,7 +126,7 @@ single quotes or double quotes around each pattern.
When no target selection options are given, `cargo bench` will build the
following targets of the selected packages:
-- lib — used to link with binaries and benchmarks
+- lib --- used to link with binaries and benchmarks
- bins (only if benchmark targets are built and required features are
available)
- lib as a benchmark
diff --git a/src/doc/src/commands/cargo-build.md b/src/doc/src/commands/cargo-build.md
index 5e1fdd039a4f..b40958b60b60 100644
--- a/src/doc/src/commands/cargo-build.md
+++ b/src/doc/src/commands/cargo-build.md
@@ -4,7 +4,7 @@
## NAME
-cargo-build - Compile the current package
+cargo-build --- Compile the current package
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-check.md b/src/doc/src/commands/cargo-check.md
index 82ba76ee39ff..cc15c257658f 100644
--- a/src/doc/src/commands/cargo-check.md
+++ b/src/doc/src/commands/cargo-check.md
@@ -4,7 +4,7 @@
## NAME
-cargo-check - Check the current package
+cargo-check --- Check the current package
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-clean.md b/src/doc/src/commands/cargo-clean.md
index c7cd8fe52744..cfa8495ff829 100644
--- a/src/doc/src/commands/cargo-clean.md
+++ b/src/doc/src/commands/cargo-clean.md
@@ -4,7 +4,7 @@
## NAME
-cargo-clean - Remove generated artifacts
+cargo-clean --- Remove generated artifacts
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-doc.md b/src/doc/src/commands/cargo-doc.md
index 9258705b7488..f779aa3da657 100644
--- a/src/doc/src/commands/cargo-doc.md
+++ b/src/doc/src/commands/cargo-doc.md
@@ -4,7 +4,7 @@
## NAME
-cargo-doc - Build a package's documentation
+cargo-doc --- Build a package's documentation
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-fetch.md b/src/doc/src/commands/cargo-fetch.md
index 93e8aba3f260..e5977e93f0fa 100644
--- a/src/doc/src/commands/cargo-fetch.md
+++ b/src/doc/src/commands/cargo-fetch.md
@@ -5,7 +5,7 @@
## NAME
-cargo-fetch - Fetch dependencies of a package from the network
+cargo-fetch --- Fetch dependencies of a package from the network
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-fix.md b/src/doc/src/commands/cargo-fix.md
index dccffd579ae9..4ca71c3bbe84 100644
--- a/src/doc/src/commands/cargo-fix.md
+++ b/src/doc/src/commands/cargo-fix.md
@@ -4,7 +4,7 @@
## NAME
-cargo-fix - Automatically fix lint warnings reported by rustc
+cargo-fix --- Automatically fix lint warnings reported by rustc
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-generate-lockfile.md b/src/doc/src/commands/cargo-generate-lockfile.md
index 9712cf663295..f603f73a4c0f 100644
--- a/src/doc/src/commands/cargo-generate-lockfile.md
+++ b/src/doc/src/commands/cargo-generate-lockfile.md
@@ -2,7 +2,7 @@
## NAME
-cargo-generate-lockfile - Generate the lockfile for a package
+cargo-generate-lockfile --- Generate the lockfile for a package
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-help.md b/src/doc/src/commands/cargo-help.md
index a3bffb1674cb..db5cb342abf9 100644
--- a/src/doc/src/commands/cargo-help.md
+++ b/src/doc/src/commands/cargo-help.md
@@ -2,7 +2,7 @@
## NAME
-cargo-help - Get help for a Cargo command
+cargo-help --- Get help for a Cargo command
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-init.md b/src/doc/src/commands/cargo-init.md
index d2317c399ed5..2ab001631efe 100644
--- a/src/doc/src/commands/cargo-init.md
+++ b/src/doc/src/commands/cargo-init.md
@@ -2,7 +2,7 @@
## NAME
-cargo-init - Create a new Cargo package in an existing directory
+cargo-init --- Create a new Cargo package in an existing directory
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-install.md b/src/doc/src/commands/cargo-install.md
index f1450a9333bd..9f31dde51c48 100644
--- a/src/doc/src/commands/cargo-install.md
+++ b/src/doc/src/commands/cargo-install.md
@@ -4,7 +4,7 @@
## NAME
-cargo-install - Build and install a Rust binary
+cargo-install --- Build and install a Rust binary
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-locate-project.md b/src/doc/src/commands/cargo-locate-project.md
index 3e42f3f073d4..5ac47b9b094d 100644
--- a/src/doc/src/commands/cargo-locate-project.md
+++ b/src/doc/src/commands/cargo-locate-project.md
@@ -2,7 +2,7 @@
## NAME
-cargo-locate-project - Print a JSON representation of a Cargo.toml file's location
+cargo-locate-project --- Print a JSON representation of a Cargo.toml file's location
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-login.md b/src/doc/src/commands/cargo-login.md
index 35fab6763d0d..96573fe502db 100644
--- a/src/doc/src/commands/cargo-login.md
+++ b/src/doc/src/commands/cargo-login.md
@@ -2,7 +2,7 @@
## NAME
-cargo-login - Save an API token from the registry locally
+cargo-login --- Save an API token from the registry locally
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-metadata.md b/src/doc/src/commands/cargo-metadata.md
index 4bac638fdaac..d06959cb81be 100644
--- a/src/doc/src/commands/cargo-metadata.md
+++ b/src/doc/src/commands/cargo-metadata.md
@@ -2,7 +2,7 @@
## NAME
-cargo-metadata - Machine-readable metadata about the current package
+cargo-metadata --- Machine-readable metadata about the current package
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-new.md b/src/doc/src/commands/cargo-new.md
index 0f4f8e7f3c38..d51309485f02 100644
--- a/src/doc/src/commands/cargo-new.md
+++ b/src/doc/src/commands/cargo-new.md
@@ -2,7 +2,7 @@
## NAME
-cargo-new - Create a new Cargo package
+cargo-new --- Create a new Cargo package
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-owner.md b/src/doc/src/commands/cargo-owner.md
index 73df3cd99024..f6f493c52d71 100644
--- a/src/doc/src/commands/cargo-owner.md
+++ b/src/doc/src/commands/cargo-owner.md
@@ -2,7 +2,7 @@
## NAME
-cargo-owner - Manage the owners of a crate on the registry
+cargo-owner --- Manage the owners of a crate on the registry
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-package.md b/src/doc/src/commands/cargo-package.md
index a58614c67892..5deb137d7a2a 100644
--- a/src/doc/src/commands/cargo-package.md
+++ b/src/doc/src/commands/cargo-package.md
@@ -5,7 +5,7 @@
## NAME
-cargo-package - Assemble the local package into a distributable tarball
+cargo-package --- Assemble the local package into a distributable tarball
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-pkgid.md b/src/doc/src/commands/cargo-pkgid.md
index 873881d8b577..420277fbf12f 100644
--- a/src/doc/src/commands/cargo-pkgid.md
+++ b/src/doc/src/commands/cargo-pkgid.md
@@ -2,7 +2,7 @@
## NAME
-cargo-pkgid - Print a fully qualified package specification
+cargo-pkgid --- Print a fully qualified package specification
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-publish.md b/src/doc/src/commands/cargo-publish.md
index a308c4dca05b..21e02e4b2ef8 100644
--- a/src/doc/src/commands/cargo-publish.md
+++ b/src/doc/src/commands/cargo-publish.md
@@ -4,7 +4,7 @@
## NAME
-cargo-publish - Upload a package to the registry
+cargo-publish --- Upload a package to the registry
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-remove.md b/src/doc/src/commands/cargo-remove.md
index 0a0024f5e838..429c22c2b021 100644
--- a/src/doc/src/commands/cargo-remove.md
+++ b/src/doc/src/commands/cargo-remove.md
@@ -4,7 +4,7 @@
## NAME
-cargo-remove - Remove dependencies from a Cargo.toml manifest file
+cargo-remove --- Remove dependencies from a Cargo.toml manifest file
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-report.md b/src/doc/src/commands/cargo-report.md
index 5df2303e6afc..c0eaa4b4234a 100644
--- a/src/doc/src/commands/cargo-report.md
+++ b/src/doc/src/commands/cargo-report.md
@@ -2,7 +2,7 @@
## NAME
-cargo-report - Generate and display various kinds of reports
+cargo-report --- Generate and display various kinds of reports
## SYNOPSIS
@@ -10,7 +10,7 @@ cargo-report - Generate and display various kinds of reports
### DESCRIPTION
-Displays a report of the given _type_ - currently, only `future-incompat` is supported
+Displays a report of the given _type_ --- currently, only `future-incompat` is supported
## OPTIONS
diff --git a/src/doc/src/commands/cargo-run.md b/src/doc/src/commands/cargo-run.md
index 43fcc026b84d..cf8e349e822d 100644
--- a/src/doc/src/commands/cargo-run.md
+++ b/src/doc/src/commands/cargo-run.md
@@ -3,7 +3,7 @@
## NAME
-cargo-run - Run the current package
+cargo-run --- Run the current package
## SYNOPSIS
diff --git a/src/doc/src/commands/cargo-rustc.md b/src/doc/src/commands/cargo-rustc.md
index 606ce7785163..c5aeec37f17e 100644
--- a/src/doc/src/commands/cargo-rustc.md
+++ b/src/doc/src/commands/cargo-rustc.md
@@ -4,7 +4,7 @@
## NAME
-cargo-rustc - Compile the current package, and pass extra options to the compiler
+cargo-rustc --- Compile the current package, and pass extra options to the compiler
## SYNOPSIS
@@ -190,13 +190,13 @@ See also the --profile
option for choosing a specific profile by na
The rustc
subcommand will treat the following named profiles with special behaviors:
check
— Builds in the same way as the cargo-check(1) command with
+check
--- Builds in the same way as the cargo-check(1) command with
the dev
profile.test
— Builds in the same way as the cargo-test(1) command,
+test
--- Builds in the same way as the cargo-test(1) command,
enabling building in test mode which will enable tests and enable the test
cfg option. See rustc
tests for more detail.bench
— Builds in the same was as the cargo-bench(1) command,
+bench
--- Builds in the same was as the cargo-bench(1) command,
similar to the test
profile.See the the reference for more details on profiles.
--edges
kindsall
— Show all edge kinds.normal
— Show normal dependencies.build
— Show build dependencies.dev
— Show development dependencies.features
— Show features enabled by each dependency. If this is the only
+all
--- Show all edge kinds.normal
--- Show normal dependencies.build
--- Show build dependencies.dev
--- Show development dependencies.features
--- Show features enabled by each dependency. If this is the only
kind given, then it will automatically include the other dependency kinds.no-normal
— Do not include normal dependencies.no-build
— Do not include build dependencies.no-dev
— Do not include development dependencies.no-proc-macro
— Do not include procedural macro dependencies.no-normal
--- Do not include normal dependencies.no-build
--- Do not include build dependencies.no-dev
--- Do not include development dependencies.no-proc-macro
--- Do not include procedural macro dependencies.The normal
, build
, dev
, and all
dependency kinds cannot be mixed with
no-normal
, no-build
, or no-dev
dependency kinds.
all
to include
This is an arbitrary string which will be used to display each package. The following strings will be replaced with the corresponding value:
{p}
— The package name.{l}
— The package license.{r}
— The package repository URL.{f}
— Comma-separated list of package features that are enabled.{lib}
— The name, as used in a use
statement, of the package's library.{p}
--- The package name.{l}
--- The package license.{r}
--- The package repository URL.{f}
--- Comma-separated list of package features that are enabled.{lib}
--- The name, as used in a use
statement, of the package's library.--prefix
prefixindent
(default) — Shows each line indented as a tree.depth
— Show as a list, with the numeric depth printed before each entry.none
— Show as a flat list.indent
(default) --- Shows each line indented as a tree.depth
--- Show as a list, with the numeric depth printed before each entry.none
--- Show as a flat list.>=1.2.3, <2.0.0
| Any SemVer-compatible version of at least the given value.
Tilde | `~1.2` | >=1.2.0, <1.3.0
| Minimum version, with restricted compatibility range.
Wildcard | `1.*` | >=1.0.0, <2.0.0
| Any version in the `*` position.
diff --git a/src/doc/src/reference/semver.md b/src/doc/src/reference/semver.md
index 36482ff6e651..b7274c259cba 100644
--- a/src/doc/src/reference/semver.md
+++ b/src/doc/src/reference/semver.md
@@ -1197,9 +1197,9 @@ However, library authors should be cautious about introducing new warnings and m
The following lints are examples of those that may be introduced when updating a dependency:
-* [`deprecated`][deprecated-lint] — Introduced when a dependency adds the [`#[deprecated]` attribute][deprecated] to an item you are using.
-* [`unused_must_use`] — Introduced when a dependency adds the [`#[must_use]` attribute][must-use-attr] to an item where you are not consuming the result.
-* [`unused_unsafe`] — Introduced when a dependency *removes* the `unsafe` qualifier from a function, and that is the only unsafe function called in an unsafe block.
+* [`deprecated`][deprecated-lint] --- Introduced when a dependency adds the [`#[deprecated]` attribute][deprecated] to an item you are using.
+* [`unused_must_use`] --- Introduced when a dependency adds the [`#[must_use]` attribute][must-use-attr] to an item where you are not consuming the result.
+* [`unused_unsafe`] --- Introduced when a dependency *removes* the `unsafe` qualifier from a function, and that is the only unsafe function called in an unsafe block.
Additionally, updating `rustc` to a new version may introduce new lints.
diff --git a/src/doc/src/reference/source-replacement.md b/src/doc/src/reference/source-replacement.md
index 8edcd0fb90eb..b8bcdc7ae2be 100644
--- a/src/doc/src/reference/source-replacement.md
+++ b/src/doc/src/reference/source-replacement.md
@@ -8,11 +8,11 @@ A *source* is a provider that contains crates that may be included as
dependencies for a package. Cargo supports the ability to **replace one source
with another** to express strategies such as:
-* Vendoring - custom sources can be defined which represent crates on the local
+* Vendoring --- custom sources can be defined which represent crates on the local
filesystem. These sources are subsets of the source that they're replacing and
can be checked into packages if necessary.
-* Mirroring - sources can be replaced with an equivalent version which acts as a
+* Mirroring --- sources can be replaced with an equivalent version which acts as a
cache for crates.io itself.
Cargo has a core assumption about source replacement that the source code is
diff --git a/src/doc/src/reference/specifying-dependencies.md b/src/doc/src/reference/specifying-dependencies.md
index 45b537607d3b..8d9eac308b8a 100644
--- a/src/doc/src/reference/specifying-dependencies.md
+++ b/src/doc/src/reference/specifying-dependencies.md
@@ -2,7 +2,7 @@
Your crates can depend on other libraries from [crates.io] or other
registries, `git` repositories, or subdirectories on your local file system.
-You can also temporarily override the location of a dependency — for example,
+You can also temporarily override the location of a dependency --- for example,
to be able to test out a bug fix in the dependency that you are working on
locally. You can have different dependencies for different platforms, and
dependencies that are only used during development. Let's take a look at how
@@ -136,7 +136,7 @@ regex = { git = "https://github.com/rust-lang/regex.git" }
Cargo will fetch the `git` repository at this location then look for a
`Cargo.toml` for the requested crate anywhere inside the `git` repository
-(not necessarily at the root - for example, specifying a member crate name
+(not necessarily at the root --- for example, specifying a member crate name
of a workspace and setting `git` to the repository containing the workspace).
Since we haven’t specified any other information, Cargo assumes that
diff --git a/src/doc/src/reference/timings.md b/src/doc/src/reference/timings.md
index 459794c455b4..9e6863306f48 100644
--- a/src/doc/src/reference/timings.md
+++ b/src/doc/src/reference/timings.md
@@ -30,11 +30,11 @@ highlighted in orange.
The second graph shows Cargo's concurrency over time. The background
indicates CPU usage. The three lines are:
-- "Waiting" (red) — This is the number of units waiting for a CPU slot to
+- "Waiting" (red) --- This is the number of units waiting for a CPU slot to
open.
-- "Inactive" (blue) — This is the number of units that are waiting for their
+- "Inactive" (blue) --- This is the number of units that are waiting for their
dependencies to finish.
-- "Active" (green) — This is the number of units currently running.
+- "Active" (green) --- This is the number of units currently running.
Note: This does not show the concurrency in the compiler itself. `rustc`
coordinates with Cargo via the "job server" to stay within the concurrency
diff --git a/src/doc/src/reference/unstable.md b/src/doc/src/reference/unstable.md
index 71c839ebb989..0b21118a88e5 100644
--- a/src/doc/src/reference/unstable.md
+++ b/src/doc/src/reference/unstable.md
@@ -60,45 +60,45 @@ Each new feature described below should explain how to use it.
### List of unstable features
* Unstable-specific features
- * [-Z allow-features](#allow-features) — Provides a way to restrict which unstable features are used.
+ * [-Z allow-features](#allow-features) --- Provides a way to restrict which unstable features are used.
* Build scripts and linking
- * [Metabuild](#metabuild) — Provides declarative build scripts.
+ * [Metabuild](#metabuild) --- Provides declarative build scripts.
* Resolver and features
- * [no-index-update](#no-index-update) — Prevents cargo from updating the index cache.
- * [avoid-dev-deps](#avoid-dev-deps) — Prevents the resolver from including dev-dependencies during resolution.
- * [minimal-versions](#minimal-versions) — Forces the resolver to use the lowest compatible version instead of the highest.
- * [public-dependency](#public-dependency) — Allows dependencies to be classified as either public or private.
+ * [no-index-update](#no-index-update) --- Prevents cargo from updating the index cache.
+ * [avoid-dev-deps](#avoid-dev-deps) --- Prevents the resolver from including dev-dependencies during resolution.
+ * [minimal-versions](#minimal-versions) --- Forces the resolver to use the lowest compatible version instead of the highest.
+ * [public-dependency](#public-dependency) --- Allows dependencies to be classified as either public or private.
* Output behavior
- * [out-dir](#out-dir) — Adds a directory where artifacts are copied to.
- * [Different binary name](#different-binary-name) — Assign a name to the built binary that is separate from the crate name.
+ * [out-dir](#out-dir) --- Adds a directory where artifacts are copied to.
+ * [Different binary name](#different-binary-name) --- Assign a name to the built binary that is separate from the crate name.
* Compile behavior
- * [mtime-on-use](#mtime-on-use) — Updates the last-modified timestamp on every dependency every time it is used, to provide a mechanism to delete unused artifacts.
- * [doctest-xcompile](#doctest-xcompile) — Supports running doctests with the `--target` flag.
- * [build-std](#build-std) — Builds the standard library instead of using pre-built binaries.
- * [build-std-features](#build-std-features) — Sets features to use with the standard library.
- * [binary-dep-depinfo](#binary-dep-depinfo) — Causes the dep-info file to track binary dependencies.
- * [panic-abort-tests](#panic-abort-tests) — Allows running tests with the "abort" panic strategy.
- * [keep-going](#keep-going) — Build as much as possible rather than aborting on the first error.
+ * [mtime-on-use](#mtime-on-use) --- Updates the last-modified timestamp on every dependency every time it is used, to provide a mechanism to delete unused artifacts.
+ * [doctest-xcompile](#doctest-xcompile) --- Supports running doctests with the `--target` flag.
+ * [build-std](#build-std) --- Builds the standard library instead of using pre-built binaries.
+ * [build-std-features](#build-std-features) --- Sets features to use with the standard library.
+ * [binary-dep-depinfo](#binary-dep-depinfo) --- Causes the dep-info file to track binary dependencies.
+ * [panic-abort-tests](#panic-abort-tests) --- Allows running tests with the "abort" panic strategy.
+ * [keep-going](#keep-going) --- Build as much as possible rather than aborting on the first error.
* rustdoc
- * [`doctest-in-workspace`](#doctest-in-workspace) — Fixes workspace-relative paths when running doctests.
- * [rustdoc-map](#rustdoc-map) — Provides mappings for documentation to link to external sites like [docs.rs](https://docs.rs/).
+ * [`doctest-in-workspace`](#doctest-in-workspace) --- Fixes workspace-relative paths when running doctests.
+ * [rustdoc-map](#rustdoc-map) --- Provides mappings for documentation to link to external sites like [docs.rs](https://docs.rs/).
* `Cargo.toml` extensions
- * [Profile `rustflags` option](#profile-rustflags-option) — Passed directly to rustc.
- * [codegen-backend](#codegen-backend) — Select the codegen backend used by rustc.
- * [per-package-target](#per-package-target) — Sets the `--target` to use for each individual package.
- * [artifact dependencies](#artifact-dependencies) - Allow build artifacts to be included into other build artifacts and build them for different targets.
+ * [Profile `rustflags` option](#profile-rustflags-option) --- Passed directly to rustc.
+ * [codegen-backend](#codegen-backend) --- Select the codegen backend used by rustc.
+ * [per-package-target](#per-package-target) --- Sets the `--target` to use for each individual package.
+ * [artifact dependencies](#artifact-dependencies) --- Allow build artifacts to be included into other build artifacts and build them for different targets.
* Information and metadata
- * [Build-plan](#build-plan) — Emits JSON information on which commands will be run.
- * [unit-graph](#unit-graph) — Emits JSON for Cargo's internal graph structure.
- * [`cargo rustc --print`](#rustc---print) — Calls rustc with `--print` to display information from rustc.
+ * [Build-plan](#build-plan) --- Emits JSON information on which commands will be run.
+ * [unit-graph](#unit-graph) --- Emits JSON for Cargo's internal graph structure.
+ * [`cargo rustc --print`](#rustc---print) --- Calls rustc with `--print` to display information from rustc.
* Configuration
- * [config-include](#config-include) — Adds the ability for config files to include other files.
- * [`cargo config`](#cargo-config) — Adds a new subcommand for viewing config files.
+ * [config-include](#config-include) --- Adds the ability for config files to include other files.
+ * [`cargo config`](#cargo-config) --- Adds a new subcommand for viewing config files.
* Registries
- * [credential-process](#credential-process) — Adds support for fetching registry tokens from an external authentication program.
- * [`cargo logout`](#cargo-logout) — Adds the `logout` command to remove the currently saved registry token.
- * [publish-timeout](#publish-timeout) — Controls the timeout between uploading the crate and being available in the index
- * [registry-auth](#registry-auth) — Adds support for authenticated registries, and generate registry authentication tokens using asymmetric cryptography.
+ * [credential-process](#credential-process) --- Adds support for fetching registry tokens from an external authentication program.
+ * [`cargo logout`](#cargo-logout) --- Adds the `logout` command to remove the currently saved registry token.
+ * [publish-timeout](#publish-timeout) --- Controls the timeout between uploading the crate and being available in the index
+ * [registry-auth](#registry-auth) --- Adds support for authenticated registries, and generate registry authentication tokens using asymmetric cryptography.
### allow-features
@@ -362,9 +362,9 @@ feature for Cargo has an extremely long history and is very large in scope, and
this is just the beginning. If you'd like to report bugs please either report
them to:
-* Cargo -