Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

RLS should have finer grained build options in addition to all_targets #1209

Closed
aloucks opened this issue Dec 22, 2018 · 1 comment
Closed
Labels
enhancement Indicates new feature requests

Comments

@aloucks
Copy link
Contributor

aloucks commented Dec 22, 2018

It would be nice if we could have finer grained build options instead of only all_targets. There are often times when I'd like to build all binaries or examples, but not the tests. It looks like cargo has support for this:

$ cargo check --help | rg "Check all"
        --all                       Check all packages in the workspace
        --bins                      Check all binaries
        --examples                  Check all examples
        --tests                     Check all tests
        --benches                   Check all benches
        --all-targets               Check all targets

We should add these options:

  • all_packages
  • all_binaries
  • all_examples
@alexheretic
Copy link
Member

I've found it not a big deal for examples, as when you're editing an example changes only require the example itself to be recompiled which is generally fast.

However, switching off all_targets can help when editing the main code on crates with lots of examples, tests, etc as each target will be recompiled after each change by default. Worse users need to wait until all targets have finished churning before getting to see an early error #1059.

@Xanewok Xanewok added the enhancement Indicates new feature requests label Mar 3, 2019
@aloucks aloucks closed this as completed May 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

No branches or pull requests

3 participants