diff --git a/src/doc/man/cargo-package.adoc b/src/doc/man/cargo-package.adoc index bc81620afa6..26eed2b1324 100644 --- a/src/doc/man/cargo-package.adoc +++ b/src/doc/man/cargo-package.adoc @@ -23,6 +23,8 @@ steps: will ignore the path key for dependencies in published packages. . Create the compressed `.crate` file. - The original `Cargo.toml` file is rewritten and normalized. + - `[patch]`, `[replace]`, and `[workspace]` sections are removed from the + manifest. - A `.cargo_vcs_info.json` file is included that contains information about the current VCS checkout hash if available (not included with `--allow-dirty`). diff --git a/src/doc/man/generated/cargo-package.html b/src/doc/man/generated/cargo-package.html index 8658e234a46..268789ce49f 100644 --- a/src/doc/man/generated/cargo-package.html +++ b/src/doc/man/generated/cargo-package.html @@ -40,6 +40,10 @@
The original Cargo.toml
file is rewritten and normalized.
[patch]
, [replace]
, and [workspace]
sections are removed from the
+manifest.
A .cargo_vcs_info.json
file is included that contains information
about the current VCS checkout hash if available (not included with
--allow-dirty
).
No [patch]
sections are allowed in the manifest.
Checks the package.publish
key in the manifest for restrictions on which
registries you are allowed to publish to.