cargo

Rust cargo rustdoc

Pass additional rustdoc arguments for a chosen library. This example includes private items when documenting the selected target. Example format: shell. Run in a disposable copy of v16/fixtures/projects/profile-demo. Expected result (not executed): Generated library documentation; dependencies are not documented by this command. Common mistake: Assuming the extra argument affects every dependency.

Formal Syntax & Structure

rust syntaxrust
cargo rustdoc [OPTIONS]

Working Example

Example Snippetrust
cargo rustdoc --offline --lib -- --document-private-items
Rust Reference