-
Notifications
You must be signed in to change notification settings - Fork 13.4k
consider nudging people to document new features in the unstable book #141527
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
Comments
another option is to generate a stub, but only if we find a tracking issue for the feature, so we never have features that are completely undocumented. |
it would be nice to require unstable-book docs for features "on stabilization track", so everything but
|
Where do experimental features fit in to this? |
I also agree with lang features being more important to have in the unstable book, since library features always have api docs (it would be cool to have a way to tell exactly what functions were enabled by a library feature, though. i guess that would probably belong in rustdoc.) |
i don't know what experimental features are. i think treating them as either incomplete features (only tracking issue required) or normal features (both tracking and unstable docs required) could make sense depending on context. |
features that have not yet gone through the relevant approval process (RFC/ACP) |
Location
https://doc.rust-lang.org/nightly/unstable-book/
Summary
right now, when you add a new unstable feature,
unstable-book-gen
will parse it out of the source code and generate a stub such as https://doc.rust-lang.org/nightly/unstable-book/language-features/async-trait-bounds.html.do we actually want this? it seems nice to instead encourage people to write docs for the new features they add. i am imagining something like this (see https://github.com/rust-lang/rust/blob/d3a2440384b54664dddd56e0081ca094c444e869/src/doc/unstable-book/README.md for how this differs from how things currently work):
src/doc/unstable-book
, so it's tracked by git.the second thing requires people to write their own docs, even if they're just a stub. and hopefully while people are at it, they will take the time to write more docs than just a stub.
The text was updated successfully, but these errors were encountered: