-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Tracking Issue for default-run #7032
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I'd like to propose stabilizing this feature. @rfcbot merge Stabilization Target: 1.37 — Release date August 15th 2019 This feature has been around for almost a year. There haven't been any issues, and I can't think of any changes that would be needed. It is fairly straightforward. It is not a high-demand feature, but there are some projects using it, and presumably more would use it if it weren't nightly-only. The error messages should be cleaned up a little when it is stabilized. Documentation will also be need to be updated. |
Team member @ehuss has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
@rfcbot reviewed |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
Stabilize default-run This stabilizes the default-run feature. I've included some error message changes. If `default-run` specifies an unknown binary, it now tells you that the `default-run` field is incorrect and which manifest it is located in, instead of just saying "could not determine which binary to run". I also consolidated some of the suggestion code so it is not repeated all over. Closes #7032
Original Issue: #2200
Implementation PR: #5710
Documentation: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#default-run
Summary
The
default-run
feature provides a way to specify which binary will be run by default bycargo run
when there are multiple binaries.Unresolved issues
default-run
specifies a non-existing binary is not great (it just says "no bin target named …"). I think it should point the user to thedefault-run
definition.The text was updated successfully, but these errors were encountered: