Skip to content

Hide documentation of rand_wasm_bindgen_test crate #914

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

Closed
wants to merge 1 commit into from

Conversation

vks
Copy link
Collaborator

@vks vks commented Nov 29, 2019

Fixes #913.

@vks vks requested a review from dhardy November 29, 2019 14:28
@dhardy
Copy link
Member

dhardy commented Nov 29, 2019

Hmm:

 Documenting rand_wasm_bindgen_test v0.1.0 (/home/travis/build/rust-random/rand/tests/wasm_bindgen)

error: couldn't generate documentation: No such file or directory (os error 2)

@dhardy
Copy link
Member

dhardy commented Nov 29, 2019

I guess this is a side-effect of using --all in

cargo doc --no-deps --all --all-features

It is possible to list crates manually (-p rand -p rand_core ...) but I'm not keen on this. Perhaps we should just put up with the status quo?

@vks
Copy link
Collaborator Author

vks commented Nov 29, 2019

Some alternatives to try are #![doc(html_no_source)] and #[doc(masked)] (unstable).

@dhardy
Copy link
Member

dhardy commented Nov 30, 2019

I tried both locally; in each case the documentation was still generated (no apparent effect). (Using #![doc(hidden)] locally also failed the bulid.)

@vks
Copy link
Collaborator Author

vks commented Nov 30, 2019

I guess that means the only remaining option is to list the crates individually.

@vks
Copy link
Collaborator Author

vks commented Dec 9, 2019

I'm closing this, since it seems like we cannot fix this by changing the source.

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 this pull request may close these issues.

Crate documentation lists rand_wasm_bindgen_test crate
2 participants