Automatically inherit workspace fields when running cargo new/init#12069
Automatically inherit workspace fields when running cargo new/init#12069bors merged 4 commits intorust-lang:masterfrom
Conversation
|
r? @ehuss (rustbot has picked a reviewer for you, use r? to override) |
0df76c9 to
ba20265
Compare
| mod cargo_config; | ||
| mod cargo_env_config; | ||
| mod cargo_features; | ||
| mod cargo_new; |
There was a problem hiding this comment.
I will move other tests for the new command to this mod after this PR merging.
There was a problem hiding this comment.
@epage Do you believe it's necessary to migrate it, or can we retain it?
There was a problem hiding this comment.
Moving things around are under discussion, so don't worry about it
|
r? @epage |
tests/testsuite/cargo_new/inherit_workspace_package_table.in/Cargo.toml
Outdated
Show resolved
Hide resolved
It specified |
c19e6dd to
89c6a6f
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
f7895e9 to
72205b8
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>
epage
left a comment
There was a problem hiding this comment.
Thanks for your work on this and sticking through the more dramatic changes in the approach! This both better prepares us for future changes and makes it easier to add other rich features to cargo add / cargo init.
Let me know if this is ready to merge or if you had other updates you were working on.
I think it is ready to go.
Thanks for your patient review! 💚 💙 💜 💛 ❤️ |
|
@bors r+ |
|
☀️ Test successful - checks-actions |
Update cargo 10 commits in 09276c703a473ab33daaeb94917232e80eefd628..64fb38c97ac4d3a327fc9032c862dd28c8833b17 2023-05-16 21:43:35 +0000 to 2023-05-23 18:53:23 +0000 - Consider rust-version when selecting packages for cargo add (rust-lang/cargo#12078) - fix(lints): Switch to -Zlints so stable projects can experiment (rust-lang/cargo#12168) - Automatically inherit workspace fields when running cargo new/init (rust-lang/cargo#12069) - ci: check if any version bump needed for member crates (rust-lang/cargo#12126) - feat: `lints` feature (rust-lang/cargo#12148) - fix: pass `-C debuginfo` after weakening if explicitly set (rust-lang/cargo#12165) - Tweak build help to clarify role of --bin (rust-lang/cargo#12157) - fix: Pass CI on nightly (rust-lang/cargo#12160) - docs(source): doc comments for Source and its impls (rust-lang/cargo#12159) - docs(source): doc comments for `Source` and friends (rust-lang/cargo#12153) r? `@ghost`
Update cargo 10 commits in 09276c703a473ab33daaeb94917232e80eefd628..64fb38c97ac4d3a327fc9032c862dd28c8833b17 2023-05-16 21:43:35 +0000 to 2023-05-23 18:53:23 +0000 - Consider rust-version when selecting packages for cargo add (rust-lang/cargo#12078) - fix(lints): Switch to -Zlints so stable projects can experiment (rust-lang/cargo#12168) - Automatically inherit workspace fields when running cargo new/init (rust-lang/cargo#12069) - ci: check if any version bump needed for member crates (rust-lang/cargo#12126) - feat: `lints` feature (rust-lang/cargo#12148) - fix: pass `-C debuginfo` after weakening if explicitly set (rust-lang/cargo#12165) - Tweak build help to clarify role of --bin (rust-lang/cargo#12157) - fix: Pass CI on nightly (rust-lang/cargo#12160) - docs(source): doc comments for Source and its impls (rust-lang/cargo#12159) - docs(source): doc comments for `Source` and friends (rust-lang/cargo#12153) r? `@ghost`
|
FYI @hi-rustin though this didn't make the release blog post, people seemed to be excited by it
So far my favorite quote:
|
What does this PR try to resolve?
close #10870
One thing to note: we will try to ensure the order of the inherited fields. You can see more at #12069 (comment)
How should we test and review this PR?