-
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
Add <spec> arguments to cargo build/clean #628
Conversation
Hm, question. I'm thinking of just extending this to solve #483, but that raises questions with the CLI syntax for Given that, the other commands which support Does that sound sane? |
Updated with said comment and a fix for #483 as well. |
490ffea
to
d411799
Compare
r=me |
I discussed this with @wycats on IRC, and he had two major comments:
|
d411799
to
1277897
Compare
Updated. re-r? |
r=me |
This adds a new argument to `cargo clean` which will enable selectively cleaning particular packages. The command only cleans the package specified, no other (not the dependencies of the package). cc rust-lang#537
This allows selectively building one dependency within a dependency graph for debugging its build or such. Closes rust-lang#537
This functionality allows running tests and benchmarks on any upstream dependencies in the dependency graph. This is most useful for path sources all developed in tandem (see Servo for instance). In terms of built artifacts, this will actually preserve as many artifacts as possible. That means that if you test a low-level dependency with the high-level artifacts already built, the high-level artifacts will not get removed. This means that it's possible to accidentally have a low-level dependency to depend on a higher level one just because it's lib is picked up via -L, but this is generally a necessary evil to get testing to not rebuild packages too often. Closes rust-lang#483
To maintain consistency with `cargo {build,test,bench,clean}` the `update` subcommand now takes a specific package via the `-p` argument instead of as a positional argument.
1277897
to
37dbfd2
Compare
This is rebased on #617 as I wanted to use one of the functions added in the patch. Otherwise the details are in the commits.
This is rebased on #617 as I wanted to use one of the functions added in the patch. Otherwise the details are in the commits.