RUSTDOC(1) | User Commands | RUSTDOC(1) |
rustdoc - generate documentation from Rust source code
rustdoc [OPTIONS] INPUT
This tool generates API reference documentation by extracting comments from source code written in the Rust language, available at <https://www.rust-lang.org>. It accepts several input formats and provides several output formats for the generated documentation.
The rustdoc tool can generate output in an HTML format.
If using an HTML format, then the specified output destination will be the root directory of an HTML structure for all the documentation. Pages will be placed into this directory, and source files will also possibly be rendered into it as well.
To generate documentation for the source in the current directory:
$ rustdoc hello.rs
List all available passes that rustdoc has, along with default
passes:
$ rustdoc --passes list
The generated HTML can be viewed with any standard web browser.
See <https://github.com/rust-lang/rust/issues> for issues.
See the version control history or <https://thanks.rust-lang.org>
This work is dual‐licensed under Apache 2.0 and MIT terms. See COPYRIGHT file in the rust source distribution.
July 2018 | rustdoc <INSERT VERSION HERE> |