Extend the build directive syntax with cargo::#12201
Conversation
|
r? @weihanglo (rustbot has picked a reviewer for you, use r? to override) |
0xPoe
left a comment
There was a problem hiding this comment.
A lot of code and docs need to update. I will update it later.
4ea02bb to
9ad93ad
Compare
cargo::cargo::
b8adc79 to
1d703a0
Compare
83ae1a8 to
eabea47
Compare
b8fd7b3 to
8f917ce
Compare
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
|
Thanks! @bors r+ |
|
☀️ Test successful - checks-actions |
|
Thanks for your review! 💚 💙 💜 💛 ❤️ |
|
Just thought of cargo/src/cargo/util/config/target.rs Lines 225 to 228 in 74ef21b |
Do you mean we should add a prefix to those metadata keys? For instance: It seems that the purpose of this is just to override rustc configurations. Therefore, I'm unsure if we need to support it here. cargo/src/cargo/util/config/target.rs Line 223 in 74ef21b |
|
I mean, it is definitely a breaking change if we want to extend more keys to override from build scripts. Actually #10274 may break stuff if people already used key like Huh… maybe it's too hard and not worthy of a transition. |
|
I created #13211 to track this |
What does this PR try to resolve?
close #11461
Extend the build directive syntax with
cargo::and update tests and docs.How should we test and review this PR?
Check out the unit tests.