Skip to content

Commit d67810f

Browse files
authored
Remove Cargo.toml from package.include in example (#15253)
https://doc.rust-lang.org/cargo/reference/manifest.html#the-exclude-and-include-fields >The following files are always included: > >* The `Cargo.toml` file of the package itself is always included, it does not need to be listed in `include`.
2 parents 1d028cc + a8d1beb commit d67810f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/doc/src/reference/publishing.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,13 @@ exclude = [
107107
```
108108

109109
If you’d rather explicitly list the files to include, Cargo also supports an
110-
`include` key, which if set, overrides the `exclude` key:
110+
[`include` key](manifest.md#the-exclude-and-include-fields), which if set, overrides the `exclude` key:
111111

112112
```toml
113113
[package]
114114
# ...
115115
include = [
116116
"**/*.rs",
117-
"Cargo.toml",
118117
]
119118
```
120119

0 commit comments

Comments
 (0)