-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
cargo run
in workspace needs to support --package argument
#3529
Comments
Would it be most appropriate to make |
@sanmai-NL not necessarily, because commands like |
Would love to see this! Even better would be if I could use the same run syntax as before but cargo would build and run the appropriate executable in my packages. To explain further, let's say I had this structure:
I used to be able to run:
With workspaces, I split that into two crates like this:
It would be really nice if I could still run the same commands as above. The executable names are still the same and unique. They just belong to different crates in the same workspace now. If the executables across crates aren't unique, then you should definitely make It's the difference between |
@sunjay that's an interesting idea! This also reminds me of #2941. I think that the general problem is that we have boatload of things (packages, targets (which can be bin, lib, example (which now themselves can be bin or lib!)), items withing targets), and all these things use somewhat ad-hoc command-line flags for identification. @alexcrichton I wonder if perhaps we want some kind of DSL to identify stuff, like various ways of referring to revision in git? The benefits would be
|
Yeah seems reasonable to me! I don't quite have an idea of what it would look like, but it'd be neat for tests as well I think |
cargo run supports --package argument closes #3529
@alexcrichton now that this is implemented and closed? Should I open a new issue for what I suggested? I would still really like that feature. |
@sunjay sure! |
No description provided.
The text was updated successfully, but these errors were encountered: