on-internet
← Community

Why Rust is taking a ton of my disk space and how to make it use less

Stack Overflow ·

I am new to Rust and just built a simple Pong using the Bevy game engine. While the game works perfectly, I noticed that the project folder is taking up literally gigabytes of my disk space! I heard that this is caused by Cargo's build artifacts stored in the target directory. Because Bevy is a large engine, the debug symbols are massive. Is there a way to automatically limit or change how Cargo stores these files globally so it doesn't consume all my disk space? Or is there a recommended configuration (like in Cargo.toml) to reduce the build size during development?

Comments

Sign in or sign up to comment and upvote.

No comments yet.