You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My problem is that I have a lot of projects, which takes up disc space. From time to time I need to go through projects and delete "target" folders. I checked the size of these folders, and I wonder why they can be over 1GB in size sometimes.
If possible, I would like a command working like "cargo build", but in addition removes the files that are no longer needed for this particular build.
I know that I can use "cargo clean", but this removes all files, including those who could save time for the next build.
The text was updated successfully, but these errors were encountered:
bvssvni
added
the
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
label
Feb 29, 2020
Here is an example use case: I update dependency versions of libraries, which means that Cargo downloads a new version and builds it. However, it does not delete the old version when no longer needed. The old versions stays in the target folder and accumulate over time. If I delete the "target" folder, I need to wait for rebuilding all dependencies.
Thanks for the suggestion. There is a meta tracking issue for this at #7150 with links to various duplicate issues, so I'm going to close in favor of that.
My problem is that I have a lot of projects, which takes up disc space. From time to time I need to go through projects and delete "target" folders. I checked the size of these folders, and I wonder why they can be over 1GB in size sometimes.
If possible, I would like a command working like "cargo build", but in addition removes the files that are no longer needed for this particular build.
I know that I can use "cargo clean", but this removes all files, including those who could save time for the next build.
The text was updated successfully, but these errors were encountered: