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

Reduce disk size taken up by rust standard library docs #4106

Open
spotlesscoder opened this issue Dec 4, 2024 · 3 comments
Open

Reduce disk size taken up by rust standard library docs #4106

spotlesscoder opened this issue Dec 4, 2024 · 3 comments

Comments

@spotlesscoder
Copy link

Problem you are trying to solve

I have a macbook with only 256GB SSD as I am not willing to pay the insane upgrade prices of apple

Thus, 700MB here and there do add up and I want to reduce the disk space taken up by software so I can store more photos etc.

Solution you'd like

The docs installed by rustup are quite large - maybe there is a way to minify the HTML etc. or generate the docs on demand (when opening) from a file format that doesn't use a lot of characters for markup

Image

Notes

No response

@weihanglo
Copy link
Member

Try the minimal profile when installing. And only add necessary component when needed.

@rami3l
Copy link
Member

rami3l commented Dec 5, 2024

I'd like to add that you can use the online docs as they are actually equivalent to the ones you're downloading with Rustup.

@ChrisDenton
Copy link
Member

If it's already installed then simply do this to remove the docs:

rustup component remove rust-docs

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

No branches or pull requests

4 participants