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

Use doc_cfg feature on docs.rs #837

Closed
wants to merge 1 commit into from
Closed

Use doc_cfg feature on docs.rs #837

wants to merge 1 commit into from

Conversation

a1phyr
Copy link

@a1phyr a1phyr commented May 29, 2020

Closes #731

It uses the same trick as Tokio, ie a --cfg attribute enabled on docs.rs.

To test locally, use RUSTDOCFLAGS='--cfg docsrs' cargo +nightly rustdoc --all-features

Copy link
Owner

@dtolnay dtolnay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

As far as I know nothing has changed since #734 so I'll close this for the same reason. Please see rust-lang/rust#43781 (comment). If you are interested, consider sending fixes to rustdoc for those things.

@dtolnay dtolnay closed this May 29, 2020
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.

Apply #[doc(cfg(feature = "..."))] on docs.rs
2 participants