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

Option to exclude documentation from rust installation? #252

Open
werner291 opened this issue Mar 7, 2021 · 2 comments
Open

Option to exclude documentation from rust installation? #252

werner291 opened this issue Mar 7, 2021 · 2 comments

Comments

@werner291
Copy link

werner291 commented Mar 7, 2021

Hello,

when installing a Rust toolchain, I get a lot of:

install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm512_mask_ternarylogic_epi64.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm512_maskz_cvtepi32_pd.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._bzhi_u32.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm512_maskz_srl_epi64.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm_max_epu16.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm_mask3_fnmsub_sd.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm512_maskz_fmaddsub_round_pd.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm512_mask_cmpge_epi16_mask.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/constant._MM_PERM_ADAB.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/constant._MM_PERM_BAAD.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm512_setzero.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm256_mask_packus_epi32.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm512_setr_pd.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm_fixupimm_sd.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm256_mask_min_epi16.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/constant._MM_EXCEPT_DENORM.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/constant._MM_PERM_ACAA.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._blcs_u32.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm_mask_slli_epi16.html
install: copying file /nix/store/ni24sz8yy3m5zz9danb56153yg078m2r-rust/share/doc/rust/html/core/arch/x86/fn._mm512_mul_pd.html

I kinda always use docs.rs, and the installation spends rather a lot of time (several minutes) installing those html files when I build a shell with rust.

Any option to skip this step?

@nbp
Copy link
Collaborator

nbp commented Mar 8, 2021

There is none at the moment.

You can probably add an option as part of the postFixup phase:

postFixup = ''

And transfer the installDoc option from:

makeOverridable ({extensions, targets, targetExtensions}:

components = installComponents stdenv namesAndSrcs;

Such that it can be configured using latest.rustChannels.nightly.rust.override { installDoc = false; }

@andersk
Copy link
Contributor

andersk commented Apr 18, 2021

See rust-lang/rust#80684 for the underlying problem causing rust-docs installation to take forever.

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

Successfully merging a pull request may close this issue.

3 participants