From: bors Date: Fri, 4 Nov 2016 20:42:09 +0000 (-0700) Subject: Auto merge of #3249 - matklad:workspace-profiles, r=alexcrichton X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~13^2~15 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f9ddf56e929ad2d248c290cf596902287ee4be75;p=cargo.git Auto merge of #3249 - matklad:workspace-profiles, r=alexcrichton Use a single profile set per workspace This aims to close #3206. I have not figured out how to do this 100% backward compatibly, that's why I want to discuss this separately, although a related PR (#3221) is already in flight. The problem is this: suppose that you have a workspace with two members, A and B and that A includes a profiles section and B does not. Now, mentally `cd` inside B and run `cargo build`. Today, Cargo will use a default profile. We want it to use a profile from A. So here the silent behavior switch will inevitably occur :( Looks like we can't detect this situation. So this PR just switches the behavior to always use root profiles, and to print a warning if a non-root package specifies profiles. Feel free to reuse it in any form for #3221 if that's convenient! --- f9ddf56e929ad2d248c290cf596902287ee4be75