Usage: rustc [OPTIONS] INPUT Options: -h, --help Display this message --cfg Configure the compilation environment. SPEC supports the syntax `[=""]`. --check-cfg Provide list of expected cfgs for checking -L [=] Add a directory to the library search path. The optional KIND can be one of (default: all). -l [[:]=][:] Link the generated crate(s) to the specified native library NAME. The optional KIND can be one of (default: dylib). Optional comma separated MODIFIERS may be specified each with a prefix of either '+' to enable or '-' to disable. --crate-type Comma separated list of types of crates for the compiler to emit --crate-name Specify the name of the crate being built --edition <2015|2018|2021|2024|future> Specify which edition of the compiler to use when compiling code. The default is 2015 and the latest stable edition is 2024. --emit [=] Comma separated list of types of output for the compiler to emit. Each TYPE has the default FILE name: * asm - CRATE_NAME.s * llvm-bc - CRATE_NAME.bc * dep-info - CRATE_NAME.d * link - (platform and crate-type dependent) * llvm-ir - CRATE_NAME.ll * metadata - libCRATE_NAME.rmeta * mir - CRATE_NAME.mir * obj - CRATE_NAME.o * thin-link-bitcode - CRATE_NAME.indexing.o --print [=] Compiler information to print on stdout (or to a file) INFO may be one of . -g Equivalent to -C debuginfo=2 -O Equivalent to -C opt-level=3 -o Write output to FILENAME --out-dir Write output to compiler-chosen filename in DIR --explain Provide a detailed explanation of an error message --test Build a test harness --target Target triple for which the code is compiled -A, --allow Set lint allowed -W, --warn Set lint warnings --force-warn Set lint force-warn -D, --deny Set lint denied -F, --forbid Set lint forbidden --cap-lints Set the most restrictive lint level. More restrictive lints are capped at this level -C, --codegen [=] 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 unstable compiler options --help -v Print the full set of options rustc accepts