Host a non-#[doc(hidden)]
Rust documentation for contributors
#1778
Labels
documentation
Improvements or additions to documentation
We use
#[doc(hidden)]
extensively in therust-runtime
crates to allow for APIs to be public to the code generated code but not public to the general consumer to avoid semver constraints - if somethings#[doc(hidden)]
we can change its API without the risk of breaking customer code.This poses a problem for writing documentation for contributors however - docs are not able to point a link to a hosted document which contains API descriptions.
Compiling our own documentation in CI using
and then hosting it would remedy this.
In both the hidden and unhidden cases, having a link to the hosted documentation in the README.md would be beneficial.
As an additional side effect, we would also be able to catch broken doc links, lints, etc in CI. Running
cargo doc
inrust-runtime
reveals 3 lints, runningRUSTDOCFLAGS='-Z unstable-options --document-hidden-items' cargo +nightly doc
reveals 50+.The text was updated successfully, but these errors were encountered: