---
title: "What is the .cargo/registry folder on Mac? (Cargo (Rust))"
description: ".cargo/registry belongs to Cargo (Rust). What’s inside, how big it gets (1 – 15 GB), whether it’s safe to delete, and the right way to shrink it."
url: https://tidymac.space/folders/cargo-registry/
updated: 2026-10-16
---

[Home](/) [Folders](/folders/) .cargo/registry

# What is the .cargo/registry folder on my Mac?

It belongs to **Cargo (Rust)**. Here’s what’s inside and the right way to deal with it.

SafeUsually 1 – 15 GBUpdated October 2, 2026By the Tidy Mac team

Short answer

Cargo keeps downloaded crates in ~/.cargo/registry: the compressed .crate files in cache and their unpacked sources in src. Both are safe to remove; Cargo downloads crates again on the next build. Keep ~/.cargo/bin, which holds your installed tools.

**Location:** `~/.cargo/registry`

## What’s inside

-   registry/cache: downloaded .crate files
-   registry/src: unpacked sources
-   registry/index: the crates.io index

**Our verdict: Safe.** Your Mac or your apps recreate this automatically. Removing it won’t lose anything you made.

## Remove it

Delete `~/.cargo/registry/cache` and `~/.cargo/registry/src`. Don’t touch `~/.cargo/bin`.

Build output lives in each project’s `target` folder; `cargo clean` inside a project removes it.

![](/img/brand/tidy-128.png)

### Find every folder like this on your Mac

Tidy Mac’s Space Map shows every big folder at its real size, and Apps › Leftovers finds folders left by apps you already deleted.

[Download](/download/TidyMac.dmg) [Buy for $9.99 once](/buy/)

## Frequently asked questions

Can I delete .cargo/registry?

Safe: Your Mac or your apps recreate this automatically. Removing it won’t lose anything you made. Cargo keeps downloaded crates in ~/.cargo/registry: the compressed .crate files in cache and their unpacked sources in src. Both are safe to remove; Cargo downloads crates again on the next build. Keep ~/.cargo/bin, which holds your installed tools.

Where is .cargo/registry on my Mac?

~/.cargo/registry. In Finder choose Go › Go to Folder and paste the path.

How big does .cargo/registry get?

Usually 1 – 15 GB.

## Keep reading

[What is go/pkg/mod?Go](/folders/go-module-cache/)[What is Caches/org.swift.swiftpm?Swift Package Manager / Xcode](/folders/swiftpm-cache/)[What is Caches/CocoaPods?CocoaPods](/folders/cocoapods-cache/)[What is .pub-cache?Flutter / Dart](/folders/pub-cache/)

Share:[X](https://x.com/intent/post?text=What%20is%20the%20.cargo%2Fregistry%20folder%20on%20my%20Mac%3F&url=https%3A%2F%2Ftidymac.space%2Ffolders%2Fcargo-registry%2F)[Reddit](https://www.reddit.com/submit?url=https%3A%2F%2Ftidymac.space%2Ffolders%2Fcargo-registry%2F&title=What%20is%20the%20.cargo%2Fregistry%20folder%20on%20my%20Mac%3F)[Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Ftidymac.space%2Ffolders%2Fcargo-registry%2F&t=What%20is%20the%20.cargo%2Fregistry%20folder%20on%20my%20Mac%3F)[LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Ftidymac.space%2Ffolders%2Fcargo-registry%2F)

#### On this page

[What’s inside](#whats-inside)[Remove it](#remove-it)[FAQ](#faq)

**Tidy Mac**

See this on your own Mac in under a minute. $9.99 once, 2 Macs.

[Download](/download/TidyMac.dmg)
