Rust API Docs
Parent epic: #1653
Doc format: /// and //! doc comments with Markdown. cargo doc generates HTML locally; #[doc] attributes are first-class in the language.
Culture: Extremely strong — arguably the strongest of all ecosystems. Missing docs on public items trigger #![warn(missing_docs)]. Examples in doc comments are compiled and run as tests (cargo test runs doctests).
Hosting analogues:
| Service |
How it works |
| docs.rs |
Official, run by the Rust infrastructure team. Automatically builds and hosts docs for every crate published to crates.io. Direct equivalent of javadoc.io, but first-party |
Key difference from Java: docs.rs is fully automatic and authoritative — no opt-in, no separate artifact. Publishing to crates.io triggers a docs build within minutes.
Rust API Docs
Parent epic: #1653
Doc format:
///and//!doc comments with Markdown.cargo docgenerates HTML locally;#[doc]attributes are first-class in the language.Culture: Extremely strong — arguably the strongest of all ecosystems. Missing docs on public items trigger
#![warn(missing_docs)]. Examples in doc comments are compiled and run as tests (cargo testruns doctests).Hosting analogues:
Key difference from Java: docs.rs is fully automatic and authoritative — no opt-in, no separate artifact. Publishing to crates.io triggers a docs build within minutes.