rust-lang / rust-lang/rfcs

Documentation: documentation of unstable things

Open
#1,819 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

T-compiler T-doc
Dominant language
Markdown
Stars
6.6k
Forks
1.7k
Avg merge
16h 14m
Merged PRs (30d)
1

Description

RFC 1636 is wonderful, but its first attempt at being followed has brought up an interesting procedural issue, which has brought up a broader weakness in our documentation strategy, and that's documentation of unstable things.

Historically, we've taken this strategy:

  1. Prioritize documenting stable things over unstable things.
  2. API docs have a stability marker placed next to them, so it's clear what's stable and what's not.
  3. The book has a section on "Nightly Rust", which is for long-form documentation for unstable things.

That's it. But RFC 1636 will involve lots of things landing in the reference, which has no capacity for stable vs. unstable things. And nightly Rust, while it's in a section titled that, doesn't necessarily do a good job of showing that stuff is nightly only.

So this question is this: how do we plan on tackling this problem?

My first instinct is to have some kind of "aside" box, like you might see in other kinds of docs. Here's the W3C:

cxakpnxuuaeipwl jpg large

This would work, but then it's unclear that, when removing the gate, this stuff will be updated.

Thoughts?

  • @rust-lang/docs (obvious reasons)
  • @rust-lang/tools (since Rustdoc may need to grow something for this)
  • @rust-lang/compiler (since they'll be the ones generally implementing the "make this stable" PRs)
  • @chriskrycho (who wrote the original RFC)
  • @llogiq (who commented on https://github.com/rust-lang/rust/pull/37928 )

And of course, anyone else 😄

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading RFC 1636 and the linked PR 37928, then review how the Reference and the "Nightly Rust" section currently identify unstable features. The work is complete when the project has an agreed, maintainable strategy for marking unstable documentation and keeping it updated as features stabilize.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.