Skip to content

API docs parity: Rust #1658

@edburns

Description

@edburns

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions