rustc

The Rust compiler. Processes, compiles and links Rust language source files.

Install

All systems
curl cmd.cat/rustc.sh
Debian Debian
apt-get install rustc
Ubuntu
apt-get install rustc
Alpine
apk add rust
Arch Arch Linux
pacman -S rust
image/svg+xml Kali Linux
apt-get install rustc
Fedora
dnf install rust
OS X
brew install rust
Raspbian
apt-get install rustc
Docker
docker run cmd.cat/rustc rustc powered by Commando

The Rust compiler. Processes, compiles and links Rust language source files.

  • Compile a single file:
    rustc file.rs
  • Compile with high optimization:
    rustc -O file.rs
  • Compile with debugging information:
    rustc -g file.rs

© tl;dr; authors and contributors