Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I can answer this!

As suggested in this article, have your dependencies and their versions fixed at your very top level cargo.toml. Every other workspace, should only be referencing via “dependency.workspace = true”.

Set your VSCode workspace to the directory with your top level cargo.toml in it.

At my work, we have a pretty massive core library, shared between 10-ish apps and I have it laid out as above, and don’t have major issues with compilation times.



Nah this doesn't work. Codebase is set up in this way already but VS Code just isn't having it :-\




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: