-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): Support cargo Cargo.toml
#12281
Conversation
This wasn't in the original Pre-RFC but in terms of consistently accepting manifests everything, I think this makes sense.
r? @ehuss (rustbot has picked a reviewer for you, use r? to override) |
f11ebdd
to
7f2eca4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave teaching discussion then.
I love the consistency between this and #12289. Merge and move on.
Edited: Just want to note that this cargo Cargo.toml
can be seen as a shorthand of cargo run --manifest-path Cargo.toml
.
@bors r+ |
☀️ Test successful - checks-actions |
Update cargo 2 commits in dead4b8740c4b6a8ed5211e37c99cf81d01c3b1c..4cebd130ebca3bc219180a54f3e26cc1b14a91de 2023-06-20 20:07:17 +0000 to 2023-06-21 18:59:29 +0000 - fix: Allow embedded manifests in all commands (rust-lang/cargo#12289) - feat(cli): Support `cargo Cargo.toml` (rust-lang/cargo#12281) r? `@ghost`
What does this PR try to resolve?
This is making the assumption that we want full unity between places accepting both single-file packages and
Cargo.toml
for #12207. This has not been brought up before in any of the discussions (Internals, eRFC), so I can understand if there are concerns about this and we decide to hold off.We might want to resolve symlinks before this so people can have a prettier name for these.
How should we test and review this PR?
The test for this was added in a commit before the actual change, letting people see how the behavior changed.