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

Allow docs.rs to auto-label optional features. #68

Closed
ripytide opened this issue May 23, 2024 · 4 comments
Closed

Allow docs.rs to auto-label optional features. #68

ripytide opened this issue May 23, 2024 · 4 comments

Comments

@ripytide
Copy link
Contributor

See rustdoc documentation on it at https://doc.rust-lang.org/rustdoc/unstable-features.html#doc_auto_cfg-automatically-generate-doccfg

This should fix #34

@kornelski
Copy link
Owner

This seems to be poorly implemented — the labels are more verbose and contain cfg syntax. doc(cfg) produces nicer output.

@ripytide
Copy link
Contributor Author

I'm confused by what you mean by verbose?

This is what I see using #![feature(doc_auto_cfg)] for the GRB page:
image
Vs without:
image

@kornelski
Copy link
Owner

Examples in the linked rustdoc issue looked worse and printed raw cfg expressions. Maybe it's been fixed since?

@ripytide
Copy link
Contributor Author

Oh I see the issue in rust-lang/rust#43781, yeah the example given there does look quite verbose but I think they've mostly fixed it by now.

Here is the listing page which I think is very manageable:
image

@ripytide ripytide mentioned this issue Jul 4, 2024
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

No branches or pull requests

2 participants