rust
Rust language toolchain entry and compiler usage
Syntax
$rustc [options] <input>
Optionen
-O
--edition
-o
Examples
Examples
$rustc main.rs
Examples
$rustc -O main.rs
Examples
$rustc --edition=2021 main.rs
Typical use cases
Note
Rust projects are usually built with cargo, while rustc is useful directly for focused compilation.
Export