1.TH RUSTDOC "1" "<INSERT DATE HERE>" "rustdoc <INSERT VERSION HERE>" "User Commands"
3rustdoc \- generate documentation from Rust source code
6[\fIOPTIONS\fR] \fIINPUT\fR
9This tool generates API reference documentation by extracting comments from
10source code written in the Rust language, available at
11<\fBhttps://www.rust-lang.org\fR>. It accepts several input formats and
12provides several output formats for the generated documentation.
17\fB\-r\fR, \fB\-\-input\-format\fR \fIFORMAT\fR
20\fB\-w\fR, \fB\-\-output\-format\fR \fIFORMAT\fR
23\fB\-o\fR, \fB\-\-output\fR \fIOUTPUT\fR,
24where to place the output (default: \fIdoc/\fR for html)
26\fB\-\-passes\fR \fILIST\fR
27space\[hy]separated list of passes to run (default: '')
30don't run the default passes
32\fB\-\-plugins\fR \fILIST\fR
33space-separated list of plugins to run (default: '')
35\fB\-\-plugin\-path\fR \fIDIR\fR
36directory to load plugins from (default: \fI/tmp/rustdoc_ng/plugins\fR)
38\fB\-\-target\fR \fITRIPLE\fR
39target triple to document
41\fB\-\-crate\-name\fR \fINAME\fR
42specify the name of this crate
44\fB\-L\fR, \fB\-\-library\-path\fR \fIDIR\fR
45directory to add to crate search path
47\fB\-\-cfg\fR \fISPEC\fR
48pass a \fI\-\-cfg\fR to rustc
50\fB\-\-extern\fR \fIVAL\fR
51pass an \fI\-\-extern\fR to rustc
54run code examples as tests
56\fB\-\-test\-args\fR \fIARGS\fR
57pass arguments to the test runner
59\fB\-\-html\-in\-header\fR \fIFILE\fR
62\fB\-\-html\-before\-content\fR \fIFILES\fR
63files to include inline between <body> and the content of a rendered Markdown
64file or generated documentation
66\fB\-\-markdown\-before\-content\fR \fIFILES\fR
67files to include inline between <body> and the content of a rendered
68Markdown file or generated documentation
70\fB\-\-html\-after\-content\fR \fIFILES\fR
71files to include inline between the content and </body> of a rendered
72Markdown file or generated documentation
74\fB\-\-markdown\-after\-content\fR \fIFILES\fR
75files to include inline between the content and </body> of a rendered
76Markdown file or generated documentation
78\fB\-\-markdown\-css\fR \fIFILES\fR
79CSS files to include via <link> in a rendered Markdown file Markdown file or
80generated documentation
82\fB\-\-markdown\-playground\-url\fR \fIURL\fR
83URL to send code snippets to
85\fB\-\-markdown\-no\-toc\fR
86don't include table of contents
88\fB\-h\fR, \fB\-\-extend\-css\fR
89to redefine some css rules with a given file to generate doc with your own theme
91\fB\-V\fR, \fB\-\-version\fR
92Print rustdoc's version
96The rustdoc tool can generate output in an HTML format.
98If using an HTML format, then the specified output destination will be the root
99directory of an HTML structure for all the documentation.
100Pages will be placed into this directory, and source files will also
101possibly be rendered into it as well.
105To generate documentation for the source in the current directory:
108List all available passes that rustdoc has, along with default passes:
109 $ rustdoc \-\-passes list
111The generated HTML can be viewed with any standard web browser.
118See <\fBhttps://github.com/rust\-lang/rust/issues\fR>
122See the version control history or <\fBhttps://thanks.rust\-lang.org\fR>
125This work is dual\[hy]licensed under Apache\ 2.0 and MIT terms.
126See \fICOPYRIGHT\fR file in the rust source distribution.
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list