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

Build docs.rs documentation with doc_auto_cfg #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

00xc
Copy link

@00xc 00xc commented Jul 1, 2024

When building documentation for docs.rs, use the doc_auto_cfg feature to highlight which crate features are required for a given API. The feature is not used when building docs locally, as it requires the nightly toolchain (which docs.rs already uses).

You can check how the new docs will look by running:

RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --open

When building documentation for docs.rs, use the `doc_auto_cfg`
feature to highlight which crate features are required for a given
API. The feature is not used when building docs locally, as it
requires the nightly toolchain (which docs.rs already uses).
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.

1 participant