Skip to content

Commit df80f80

Browse files
committed
Auto merge of #7682 - fintelia:patch-1, r=ehuss
Features and dependencies can't have the same name The document was describing a Cargo.toml containing ``` [dependencies] postgres = { version = "*", optional = true } postgres-macros = { version = "*", optional = true } [features] postgres = ["postgres", "postgres-macros"] ``` If you tried doing this you'd get an error: ``` error: failed to parse manifest at `/home/jonathan/tmp/features/Cargo.toml` Caused by: Features and dependencies cannot have the same name: `postgres` ```
2 parents 1072b35 + 67587fc commit df80f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/src/reference/manifest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ Cargo supports features to allow expression of:
405405

406406
* conditional compilation options (usable through `cfg` attributes);
407407
* optional dependencies, which enhance a package, but are not required; and
408-
* clusters of optional dependencies, such as `postgres`, that would include the
408+
* clusters of optional dependencies, such as `postgres-all`, that would include the
409409
`postgres` package, the `postgres-macros` package, and possibly other packages
410410
(such as development-time mocking libraries, debugging tools, etc.).
411411

0 commit comments

Comments
 (0)