Menu

1 / 4

My Rust target/ said 325 GB. My disk said 1.65 GB free.

DEV Community: rust·Fajar Hidayat·12 days ago
#9p4ijyXR
#devtorust#devto#dev#disk#full
Reading 0:00
15s threshold

so last week my Mac said the disk was full. like, actually full. 1.65 GB left out of 494 GB.

I ran du on my Rust projects and target/debug came back at 325 GB. ok. found it.

I posted the screenshot on Threads, three lines, asked how everyone else deals with this. got 140 comments lol. so I tried the suggestions.

some context. I'm building a Rust CLI called Contexere (used to be OMNI), and I run a few AI coding agents on it at the same time, each in its own git worktree. every worktree builds its own copy of every dependency. debug, test, release, each with their own copies too. that's how one folder gets huge without you doing anything weird.

what people told me

cargo clean more often. one guy runs it from a post-merge git hook, so every pull on main starts clean.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.