mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-10 11:29:59 +03:00
18 lines
314 B
Markdown
18 lines
314 B
Markdown
# rustc
|
|
|
|
> The Rust compiler.
|
|
> Processes, compiles and links Rust language source files.
|
|
> More information: <https://doc.rust-lang.org/rustc>.
|
|
|
|
- Compile a single file:
|
|
|
|
`rustc {{file.rs}}`
|
|
|
|
- Compile with high optimization:
|
|
|
|
`rustc -O {{file.rs}}`
|
|
|
|
- Compile with debugging information:
|
|
|
|
`rustc -g {{file.rs}}`
|