What it is
Git dependencies Cargo cloned for your Rust projects.
Can you delete it?
Yes, it is rebuilt automatically. Cargo clones them again on the next build that needs them.
How to clean it safely
- Delete the folder's contents.
- Or use the cargo-cache tool to trim it.
How big is it on your Mac?
This read-only command prints its size and changes nothing:
Terminal
du -sh ~/".cargo/git" 2>/dev/nullStep-by-step guide: Rust target folders →
Related folders
- sccache ·
~/Library/Caches/Mozilla.sccache - Rust toolchains ·
~/.rustup/toolchains - Cargo registry (Rust) ·
~/.cargo/registry - Rust target folder ·
<project>/target - Terraform plugin cache ·
~/.terraform.d/plugin-cache - Cursor cache ·
~/Library/Application Support/Cursor/Cache
Questions
Is it safe to delete ~/.cargo/git?
Yes, it is rebuilt automatically. Cargo clones them again on the next build that needs them.
Let the raccoon do it, safely
Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.
Download for Mac