Skip to content

Commit 83ae3b7

Browse files
Point to existing docs about include/exclude fields
Co-authored-by: Weihang Lo <weihanglo@users.noreply.github.com>
1 parent d07bd5b commit 83ae3b7

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/doc/man/cargo-package.md

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

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

0 commit comments

Comments
 (0)