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

Add Warning for Users Compiling Native Link #592

Closed
MarcusSorealheis opened this issue Jan 5, 2024 · 1 comment · Fixed by #599
Closed

Add Warning for Users Compiling Native Link #592

MarcusSorealheis opened this issue Jan 5, 2024 · 1 comment · Fixed by #599
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@MarcusSorealheis
Copy link
Collaborator

The Rust compiler, rustc, can generate a ton of artifacts in compilation, ranging from dependencies and macros to generated code and intermediate files. Users should be warned that if they choose to compile the program for source, they should keep an eye on the associated files and their impact on disk usage on the host.

For users looking to understand the impact, they can look at the target/ directory. Users relying on the executable should not have this problem.

@MarcusSorealheis MarcusSorealheis added the documentation Improvements or additions to documentation label Jan 5, 2024
@steedmicro
Copy link
Contributor

@MarcusSorealheis , @blakehatch

It's a really good idea, I think.
I actually faced that kinda disk full issue while I was working on my Windows VPS machine which has low capacity of hard disks.
At that time, I used cargo run command and multiple download of libraries seem to pile up my disk and it finally made my VPS to get stuck.
In my case cargo clean command worked fine for deleting the cache files which is large.

Plus, when we use bazel run, I think bazel clean --expunge command would work fine.

Of course, it's true that it's a simple general knowledge but we should target novice users as well, I think.
Thanks.

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

Successfully merging a pull request may close this issue.

3 participants