From 2896e3f14847f13866d710d370dc62d201bf6716 Mon Sep 17 00:00:00 2001 From: xftroxgpx Date: Sun, 7 Jan 2018 23:48:52 +0100 Subject: [PATCH] doc: [profile.*] sections are for root crate only ie. warning: profiles for the non root package will be ignored, specify profiles at the workspace root: --- src/doc/src/reference/manifest.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/doc/src/reference/manifest.md b/src/doc/src/reference/manifest.md index 48372bb22..d2f3fd2f5 100644 --- a/src/doc/src/reference/manifest.md +++ b/src/doc/src/reference/manifest.md @@ -491,7 +491,8 @@ properties: * Whenever any crate in the workspace is compiled, output is placed in the *workspace root*. i.e. next to the *root crate*'s `Cargo.toml`. * The lock file for all crates in the workspace resides in the *workspace root*. -* The `[patch]` and `[replace]` sections in `Cargo.toml` are only recognized +* The `[patch]`, `[replace]` and `[profile.*]` sections in `Cargo.toml` + are only recognized in the *root crate*'s manifest, and ignored in member crates' manifests. [RFC 1525]: https://github.com/rust-lang/rfcs/blob/master/text/1525-cargo-workspace.md -- 2.30.2