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_auto_cfg for docs generation #110

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

Conversation

i509VCB
Copy link

@i509VCB i509VCB commented Mar 14, 2023

This is done when generating docs on docs.rs and locally with RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc --all-features

There seems to be some bugs with the labels however:

There does seem to be a rustdoc bug when generating the labels as SwashImage fails to get a feature label automatically assigned to the type, but the functions have the label.

Also FontSystem seems to get an std label even though it is available no_std. I imagine that could be fixed by reworking the reexports.

Screenshot 2023-03-13 at 21-02-48 cosmic_text - Rust

This is done when generating docs on docs.rs and locally with `RUSTDOCFLAGS="--cfg=docsrs" cargo +nightly doc --all-features`
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