The final piece of the toolchain is the ecosystem itself — how you find, document, and publish crates. cargo doc, docs.rs, and crates.io close the loop.
cargo doc: docs from code
cargo doc --open generates HTML documentation from your /// comments and type signatures, and opens it in a browser. Every Rust crate's docs are generated this way, so they all look and navigate identically. Your doc comments — the same ones whose examples are doctested — become a polished reference site for free.
docs.rs: the universal docs host
Every crate published to crates.io gets its documentation auto-built and hosted at docs.rs. When you depend on a crate, docs.rs/<crate> is your reference — generated from that exact version's source. It's why exploring an unfamiliar Rust crate is fast: the docs are always there, always current, always in the same format.
docs.rs/<crate-name>. It's generated from the source, versioned, and complete — far more reliable than a blog post or an AI's memory of an old version. Reading docs.rs is a core Rust skill.Publishing and semver
cargo publish pushes a crate to crates.io for the world to use. With that power comes the semver contract: a MINOR or PATCH bump must stay backward-compatible; breaking changes require a MAJOR bump. The whole ecosystem's reliability rests on crate authors honoring this — and Cargo's version resolution assuming they do. You've now seen the full loop: write, test, document, publish.