rustc --version (return code: 0)
rustc 1.11.0 (9b21dcd6a 2016-08-15)
rustc --help (return code: 0)
Usage: rustc [OPTIONS] INPUT
Options:
-h --help Display this message
--cfg SPEC Configure the compilation environment
-L [KIND=]PATH Add a directory to the library search path. The
optional KIND can be one of dependency, crate, native,
framework or all (the default).
-l [KIND=]NAME Link the generated crate(s) to the specified native
library NAME. The optional KIND can be one of static,
dylib, or framework. If omitted, dylib is assumed.
--crate-type [bin|lib|rlib|dylib|staticlib]
Comma separated list of types of crates for the
compiler to emit
--crate-name NAME Specify the name of the crate being built
--emit [asm|llvm-bc|llvm-ir|obj|link|dep-info]
Comma separated list of types of output for the
compiler to emit
--print [crate-name|file-names|sysroot|cfg|target-list]
Comma separated list of compiler information to print
on stdout
-g Equivalent to -C debuginfo=2
-O Equivalent to -C opt-level=2
-o FILENAME Write output to <filename>
--out-dir DIR Write output to compiler-chosen filename in <dir>
--explain OPT Provide a detailed explanation of an error message
--test Build a test harness
--target TARGET Target triple for which the code is compiled
-W --warn OPT Set lint warnings
-A --allow OPT Set lint allowed
-D --deny OPT Set lint denied
-F --forbid OPT Set lint forbidden
--cap-lints LEVEL Set the most restrictive lint level. More restrictive
lints are capped at this level
-C --codegen OPT[=VALUE]
Set a codegen option
-V --version Print version info and exit
-v --verbose Use verbose output
Additional help:
-C help Print codegen options
-W help Print 'lint' options and default settings
-Z help Print internal options for debugging rustc
--help -v Print the full set of options rustc accepts