mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-09-17 17:17:40 +08:00
rustc: add page
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user