ipetkov / crane

A Nix library for building cargo projects. Never build twice thanks to incremental artifact caching.
https://crane.dev
MIT License
962 stars 92 forks source link

Missing documentation: plain cargo workspaces example #585

Closed lolbinarycat closed 7 months ago

lolbinarycat commented 7 months ago

a very common pattern is to split up a project into several crates, usually a library and an executable, in order to separate the cli logic from the application logic.

crane provides an example of using workspaces with trunk, but does not show how to use workspaces for anything that isn't a webapp.

ipetkov commented 7 months ago

Thanks for the suggestion @lolbinarycat ! I've added an example in https://github.com/ipetkov/crane/pull/597