doc: [profile.*] sections are for root crate only
authorxftroxgpx <xftroxgpx@protonmail.com>
Sun, 7 Jan 2018 22:48:52 +0000 (23:48 +0100)
committerxftroxgpx <xftroxgpx@protonmail.com>
Sun, 7 Jan 2018 22:48:52 +0000 (23:48 +0100)
ie.
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:

src/doc/src/reference/manifest.md

index 48372bb223ce66581cb7b6cb64990e80533a6549..d2f3fd2f595c863ecb64ada4632b882a2e5c8c3f 100644 (file)
@@ -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