Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo build makes a huge target folder #4082

Open
Ashilex opened this issue Jul 25, 2023 · 1 comment
Open

cargo build makes a huge target folder #4082

Ashilex opened this issue Jul 25, 2023 · 1 comment

Comments

@Ashilex
Copy link

Ashilex commented Jul 25, 2023

Hi all. Trying to compile the engines for a raspberry pi model 2 B. When i do cargo build the process stops at a certain point because raspberry runs out of storage. target folder is 3gb more or less. I want to understand if that's supposed to be that bulky and if I can't get rid of some of its content in the end.

thanks

@emi0x7d1
Copy link

emi0x7d1 commented Aug 18, 2023

Try adding

[profile.dev] # or [profile.release]
debug = false
panic = "abort"
opt-level = "s"
incremental = false

to the Cargo.toml in the root directory.

But Rust just creates huge target directories so it might not help much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants