Skip to content

Commit b8125da

Browse files
committed
chore: cargo build-man
1 parent 83ae3b7 commit b8125da

File tree

3 files changed

+7
-40
lines changed

3 files changed

+7
-40
lines changed

src/doc/man/generated_txt/cargo-package.txt

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,9 @@ DESCRIPTION
3636

3737
o Symlinks are flattened to their target files.
3838

39-
o Subdirectories containing Cargo.toml are excluded, as they are
40-
assumed to be separate packages.
41-
42-
o A target directory in the root of the package is excluded.
43-
44-
o Files and directories matching the [include] and [exclude] fields
45-
in the manifest are included or excluded. Include patterns can
46-
override the following rules.
47-
48-
o Files that are ignored by VCS are excluded.
49-
50-
o Unix hidden files and directories (starting with .) are excluded.
39+
o Files and directories are included or excluded based on rules
40+
mentioned in the [include] and [exclude] fields
41+
<https://doc.rust-lang.org/cargo/reference/manifest.html#the-exclude-and-include-fields>.
5142

5243
3. Extract the .crate file and build it to verify it can build.
5344

src/doc/src/commands/cargo-package.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,8 @@ stored in the `target/package` directory. This performs the following steps:
2828
about the current VCS checkout hash if available, as well as a flag if the
2929
worktree is dirty.
3030
- Symlinks are flattened to their target files.
31-
- Subdirectories containing `Cargo.toml` are excluded, as they are assumed
32-
to be separate packages.
33-
- A `target` directory in the root of the package is excluded.
34-
- Files and directories matching the `[include]` and `[exclude]` fields in
35-
the manifest are included or excluded. Include patterns can override the
36-
following rules.
37-
- Files that are ignored by VCS are excluded.
38-
- Unix hidden files and directories (starting with `.`) are excluded.
31+
- Files and directories are included or excluded based on rules mentioned in
32+
[the `[include]` and `[exclude]` fields](../reference/manifest.html#the-exclude-and-include-fields).
3933

4034
3. Extract the `.crate` file and build it to verify it can build.
4135
- This will rebuild your package from scratch to ensure that it can be

src/etc/man/cargo-package.1

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,8 @@ worktree is dirty.
5151
.RE
5252
.sp
5353
.RS 4
54-
\h'-04'\(bu\h'+02'Subdirectories containing \fBCargo.toml\fR are excluded, as they are assumed
55-
to be separate packages.
56-
.RE
57-
.sp
58-
.RS 4
59-
\h'-04'\(bu\h'+02'A \fBtarget\fR directory in the root of the package is excluded.
60-
.RE
61-
.sp
62-
.RS 4
63-
\h'-04'\(bu\h'+02'Files and directories matching the \fB[include]\fR and \fB[exclude]\fR fields in
64-
the manifest are included or excluded. Include patterns can override the
65-
following rules.
66-
.RE
67-
.sp
68-
.RS 4
69-
\h'-04'\(bu\h'+02'Files that are ignored by VCS are excluded.
70-
.RE
71-
.sp
72-
.RS 4
73-
\h'-04'\(bu\h'+02'Unix hidden files and directories (starting with \fB\&.\fR) are excluded.
54+
\h'-04'\(bu\h'+02'Files and directories are included or excluded based on rules mentioned in
55+
\fIthe \f(BI[include]\fI and \f(BI[exclude]\fI fields\fR <https://doc.rust\-lang.org/cargo/reference/manifest.html#the\-exclude\-and\-include\-fields>\&.
7456
.RE
7557
.RE
7658
.sp

0 commit comments

Comments
 (0)