Skip to content

Using Rustc and Rustup

Rustup is Rust's toolchain management utility.

rustup add
rustup add

Typically when you work with a Rust program you use cargo. But under the hood, cargo is using the Rust compiler rustc. Out of the box, rustc is a cross-compiler.

You can build for specific architectures with the --target flag.

sh
rustc
rustc

TODO: Add discussion on why you use rustc vs rustup vs cargo and when