mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 04:08:40 +00:00
A simple update to the manpage based on the usage message
This commit is contained in:
parent
ae861f0288
commit
194d3786a7
43
man/rustc.1
43
man/rustc.1
@ -1,4 +1,4 @@
|
|||||||
.TH RUSTC "1" "July 2012" "rustc 0.3" "User Commands"
|
.TH RUSTC "1" "October 2012" "rustc 0.4" "User Commands"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
rustc \- rust compiler
|
rustc \- rust compiler
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -42,6 +42,9 @@ Compile a library crate
|
|||||||
\fB\-\-ls\fR
|
\fB\-\-ls\fR
|
||||||
List the symbols defined by a compiled library crate
|
List the symbols defined by a compiled library crate
|
||||||
.TP
|
.TP
|
||||||
|
\fB\-\-jit\fR
|
||||||
|
Execute using JIT (experimental)
|
||||||
|
.TP
|
||||||
\fB\-\-no\-trans\fR
|
\fB\-\-no\-trans\fR
|
||||||
Run all passes except translation; no output
|
Run all passes except translation; no output
|
||||||
.TP
|
.TP
|
||||||
@ -62,9 +65,9 @@ Parse only; do not compile, assemble, or link
|
|||||||
.TP
|
.TP
|
||||||
\fB\-\-pretty\fR [type]
|
\fB\-\-pretty\fR [type]
|
||||||
Pretty\-print the input instead of compiling;
|
Pretty\-print the input instead of compiling;
|
||||||
valid types are: \fBnormal\fR (un\-annotated source),
|
valid types are: normal (un\-annotated source),
|
||||||
\fBexpanded\fR (crates expanded), \fBtyped\fR (crates expanded,
|
expanded (crates expanded), typed (crates expanded,
|
||||||
with type annotations), or \fBidentified\fR (fully
|
with type annotations), or identified (fully
|
||||||
parenthesized, AST nodes and blocks with IDs)
|
parenthesized, AST nodes and blocks with IDs)
|
||||||
.TP
|
.TP
|
||||||
\fB\-S\fR
|
\fB\-S\fR
|
||||||
@ -75,7 +78,8 @@ Write intermediate files (.bc, .opt.bc, .o)
|
|||||||
in addition to normal output
|
in addition to normal output
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-static\fR
|
\fB\-\-static\fR
|
||||||
Use or produce static libraries or binaries (experimental)
|
Use or produce static libraries or binaries
|
||||||
|
(experimental)
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-sysroot\fR <path>
|
\fB\-\-sysroot\fR <path>
|
||||||
Override the system root
|
Override the system root
|
||||||
@ -84,21 +88,25 @@ Override the system root
|
|||||||
Build a test harness
|
Build a test harness
|
||||||
.TP
|
.TP
|
||||||
\fB\-\-target\fR <triple>
|
\fB\-\-target\fR <triple>
|
||||||
Target cpu\-manufacturer\-kernel[\-os] to compile for (default: host triple)
|
Target cpu\-manufacturer\-kernel[\-os] to compile for
|
||||||
(see <\fBhttp://sources.redhat.com/autobook/autobook/autobook_17.html\fR> for
|
(default: host triple)
|
||||||
detail)
|
(see http://sources.redhat.com/autobook/autobook/
|
||||||
|
autobook_17.html for detail)
|
||||||
|
.TP
|
||||||
|
\-(W|A|D|F) help
|
||||||
|
Print available 'lint' checks and default settings
|
||||||
.TP
|
.TP
|
||||||
\fB\-W\fR <foo>
|
\fB\-W\fR <foo>
|
||||||
enable warning <foo>
|
warn about <foo> by default
|
||||||
.TP
|
.TP
|
||||||
\fB\-W\fR no\-<foo>
|
\fB\-A\fR <foo>
|
||||||
disable warning <foo>
|
allow <foo> by default
|
||||||
.TP
|
.TP
|
||||||
\fB\-W\fR err\-<foo>
|
\fB\-D\fR <foo>
|
||||||
enable warning <foo> as an error
|
deny <foo> by default
|
||||||
.TP
|
.TP
|
||||||
\fB\-W\fR help
|
\fB\-F\fR <foo>
|
||||||
Print available warnings and default settings
|
forbid <foo> (deny, and deny all overrides)
|
||||||
.TP
|
.TP
|
||||||
\fB\-Z\fR help
|
\fB\-Z\fR help
|
||||||
list internal options for debugging rustc
|
list internal options for debugging rustc
|
||||||
@ -117,11 +125,12 @@ To build either with a crate (.rc) file:
|
|||||||
$ rustc hello.rc
|
$ rustc hello.rc
|
||||||
|
|
||||||
.SH "BUGS"
|
.SH "BUGS"
|
||||||
See <\fBhttps://github.com/mozilla/rust/issues\fR> for a list of known bugs.
|
See <\fBhttps://github.com/mozilla/rust/issues\fR> for issues.
|
||||||
|
|
||||||
.SH "AUTHOR"
|
.SH "AUTHOR"
|
||||||
See \fBAUTHORS.txt\fR in the rust source distribution. Graydon Hoare
|
See \fBAUTHORS.txt\fR in the rust source distribution. Graydon Hoare
|
||||||
<\fIgraydon@mozilla.com\fR> is the project leader.
|
<\fIgraydon@mozilla.com\fR> is the project leader.
|
||||||
|
|
||||||
.SH "COPYRIGHT"
|
.SH "COPYRIGHT"
|
||||||
See \fBLICENSE.txt\fR in the rust source distribution.
|
This work is licensed under MIT-like terms. See \fBLICENSE.txt\fR
|
||||||
|
in the rust source distribution.
|
||||||
|
Loading…
Reference in New Issue
Block a user