From 5879a3bd3270c7abb7f195a2bdd20933c3c8841f Mon Sep 17 00:00:00 2001 From: Ed Page Date: Wed, 15 Apr 2026 10:32:48 -0500 Subject: [PATCH] docs(ref): Better highlight 'package --list' for include/exclude --- src/doc/src/reference/manifest.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/doc/src/reference/manifest.md b/src/doc/src/reference/manifest.md index 5f1074f8ea5..f417230c7cb 100644 --- a/src/doc/src/reference/manifest.md +++ b/src/doc/src/reference/manifest.md @@ -372,8 +372,6 @@ and certain kinds of change tracking (described below). The patterns specified in the `exclude` field identify a set of files that are not included, and the patterns in `include` specify files that are explicitly included. -You may run [`cargo package --list`][`cargo package`] to verify which files will -be included in the package. ```toml [package] @@ -387,6 +385,9 @@ exclude = ["/ci", "images/", ".*"] include = ["/src", "COPYRIGHT", "/examples", "!/examples/big_example"] ``` +> **Note:** Run [`cargo package --list`][`cargo package`] +> to verify which files will be included in the package. + The default if neither field is specified is to include all files from the root of the package, except for the exclusions listed below.