Skip to content

How do I tell craneLib.buildDepsOnly that I am building only select Workspace Members? #204

Answered by dpc
DrRuhe asked this question in Q&A
Discussion options

You must be logged in to vote

Is it possible to build the dependencies only for a select crate?

Yes, you just have to make sure to pass -p to the build command in the craneLib.buildDepsOnly. Example from our codebase of a function that takes care of compiling only one package from the whole workspace

https://github.com/fedimint/fedimint/blob/c0651f88068b5818cb42a1d038d3b55d26b41e56/flake.nix#L421

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DrRuhe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants