mirror of https://github.com/CrimsonTome/tldr.git
20 lines
252 B
Markdown
20 lines
252 B
Markdown
|
# rustc
|
||
|
|
||
|
> The Rust compiler.
|
||
|
|
||
|
- Compile a single file:
|
||
|
|
||
|
`rustc {{file.rs}}`
|
||
|
|
||
|
- Compile with high optimization:
|
||
|
|
||
|
`rustc -O {{file.rs}}`
|
||
|
|
||
|
- Compile with debugging information:
|
||
|
|
||
|
`rustc -g {{file.rs}}`
|
||
|
|
||
|
- Build a test harness:
|
||
|
|
||
|
`rustc --test {{file.rs}}`
|