Skip to content

Commit

Permalink
Document that [replace] should not be used.
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Dec 19, 2019
1 parent e958fe6 commit 018b5f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/doc/src/reference/manifest.md
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,9 @@ crates.

### The `[replace]` Section

> **Note**: `[replace]` is deprecated. You should use the [`[patch]`][patch]
> table instead.
This section of Cargo.toml can be used to [override dependencies][replace] with
other copies. The syntax is similar to the `[dependencies]` section:

Expand Down Expand Up @@ -1021,3 +1024,4 @@ dependencies][replace] section of the documentation.
[spdx-2.1-license-expressions]: https://spdx.org/spdx-specification-21-web-version#h.jxpfx0ykyb60
[spdx-license-list-3.6]: https://github.com/spdx/license-list-data/tree/v3.6
[SPDX site]: https://spdx.org/license-list
[patch]: #the-patch-section

0 comments on commit 018b5f5

Please sign in to comment.