Skip to content

How would I work with a large workspace and only selectively build things? #31

Answered by ipetkov
TheNeikos asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @TheNeikos! The short answer is:

  • you can easily build just the crates you want, but changes to unrelated files may result in needing to rebuild the workspace crates
  • it may be possible to avoid the rebuilds above but it will take more manual writing of build expressions to achieve (I hope to one day have better automatic support for monorepos but the functionality isn't there yet)

On to the longer/more detailed responses:

Build the crates individually while developing

This is entirely achievable through the dev shell as long as you have the right tools declared. When you run cargo build/check in your terminal you aren't bound by Nix's sandbox, cargo will happily put the artifacts in…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@TheNeikos
Comment options

@dpc
Comment options

@ipetkov
Comment options

Answer selected by TheNeikos
Comment options

You must be logged in to vote
2 replies
@ipetkov
Comment options

@dpc
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants