mirror of
https://github.com/bevyengine/bevy.git
synced 2026-05-06 06:06:42 -04:00
55a875b577
# Objective Reduce the size of the `target` directory with Bevy builds. ## Solution I found this [blog](https://kobzol.github.io/rust/rustc/2025/06/02/reduce-cargo-target-dir-size-with-z-no-embed-metadata.html) about `-Zno-embed-metadata`, Cargo flag that reduces the size of the `target` directory by avoiding duplicate metadata or something. ## Testing I compiled the `main` branch with and without this branch and the size of the `target` directory went from 11.61G without the flag to 11.15G with the flag. Not a huge difference, but still a 4% decrease.