GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
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.

rust
html
where to place the output (default: doc/ for html)
space‐separated list of passes to run (default: '')
don't run the default passes
space-separated list of plugins to run (default: '')
directory to load plugins from (default: /tmp/rustdoc_ng/plugins)
target triple to document
specify the name of this crate
directory to add to crate search path
pass a --cfg to rustc
pass an --extern to rustc
run code examples as tests
pass arguments to the test runner
file to add to <head>
files to include inline between <body> and the content of a rendered Markdown file or generated documentation
files to include inline between <body> and the content of a rendered Markdown file or generated documentation
files to include inline between the content and </body> of a rendered Markdown file or generated documentation
files to include inline between the content and </body> of a rendered Markdown file or generated documentation
CSS files to include via <link> in a rendered Markdown file Markdown file or generated documentation
URL to send code snippets to
don't include table of contents
to redefine some css rules with a given file to generate doc with your own theme
Print rustdoc's version

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.

rustc(1)

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>

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.