OptionsOn rustc itself
-h--help
Prints out help info
--cfg
Configures compilation settings <Spec>
-L
Adds a directory to the library search path <kind> <path>
--l
Links the generated crate to a native library <kind> <Name>
--crate-type
Specify types of crates for the compiler to emit <type>
--crate-name
Specify the name of the crate being built <Name>
--edition
Specify the edition to use <edition>
--emit
Specify the types of output files to generate <type>
--print
Prints compiler info <type>
-g
Synonym for -C debuginfo=2
-O
Synonym for -C opt-level=2
-o
Specify the filename to write output <filename>
--out-dir
Specify directory to write output <dir>
--explain
Provides a detailed explanation of an error message <Error Code>
--test
Builds a test harness
--target
Selects a target triple to build <Target>
-W--warn
Sets lint warnings <OPT>
-A--allow
Set lint allowed <OPT>
-D--deny
Set lint denied <OPT>
-F--forbid
Set lint forbid <Opt>
--cap-lints
Set the most restrictive lint level <Level>
-C--codegen
Set a codegen option <option>
-Z
Set unstable options <option>
-V--version
Prints version
-v--verbose
Use verbose output
--extern
Specify where an external library is located <Path>
--sysroot
Overrides the system root <directory>
--error-format
Controls how errors are produced <format>
--color
Configures coloring of output <color>