-
Notifications
You must be signed in to change notification settings - Fork 913
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
Document Cargo feature flags #3440
Comments
I'd rather just document them manually, as exemplified in the Also, looking at the feature flags we do have, I think |
document-features
The downside of documenting them manually is that you need to keep the documentation and |
I would also prefer to have the process automated, but I think
None of these are real showstoppers though, just some downsides. I would have preferred to have a tool that checks it in CI instead of a Cargo dependency parsing things in a proc-macro during build. Alternatively a fix in Cargo would do it as well: rust-lang/cargo#2025, rust-lang/cargo#8811. I don't have a strong opinion either way, but if I had to vote on something it would probably be just doing it by hand. |
My personal take is that Cargo.toml is the right place to document features because it's the only place you can guarantee all features will be listed. I'm glad we have |
Could we extract features manually from the |
document-features
is a crate for easily documenting the feature flags in theCargo.toml
file.The text was updated successfully, but these errors were encountered: