How to clean registry but also is it possible to install packages at the project level?
The registry at. .cargo/registry/src
Is there a command to do this?
Further to which as a beginner to rust, is it possible to install such packages at the project level instead using cargo?
Almost everyone uses cargo and I would strongly using it, even more so as a beginner. I suggest explaining why you want to do this, and hopefully people can suggest ways of getting what you need while still using cargo.
The exact reason is to reduce storage space.
Installing packages locally per-package won't reduce storage space. It will increase storage space when dependencies (including versions) are used by more than one package, since these can be shared by cargo.
To removed unused dependencies, use:
And:
1 Like
Yeah thanks what I meant by reducing storage space was ideally rather keep dumping them in one folder and forgetting about them and letting it build up over time dynamic. But your answer is helpful and the correct solution so I marked it as that. Thanks for the help.
1 Like