Take a look at xtask. It essentially relies on the fact that you can add cargo aliases in local files in order to execute specific packages.
When I create a workspace that has some form of code generation I like to overwrite cargo gen to whatever is doing the generating.


I have used cargo ramdisk before with success.