rustdoc Command Examples

Generate documentation for a Rust crate. More information: https://doc.rust-lang.org/stable/rustdoc.

rustdoc {{src/lib.rs}}

rustdoc {{src/lib.rs}} --crate-name {{name}}

rustdoc {{path/to/file.md}}

rustdoc {{src/lib.rs}} --out-dir {{path/to/output_directory}}