rustc is the official Rust compiler. It compiles Rust source into platform-dependent binaries, including targets such as x86-64, AArch64, and WebAssembly. Distribution therefore usually means shipping a binary rather than source alone. section 1.1
Built on LLVM, rustc sits alongside Cargo and everyday tooling such as rust-analyzer, rustfmt, Clippy, and sccache. Rust’s static type checks and borrow checker reject mismatched types and invalid references before code runs. section 3.0 section 6.4
Let the compiler handle compile-time guarantees
Do not write a unit test to establish that an integer is an integer or that a reference is valid. Test program logic instead, including fallible conversions and edge cases. Heavy use of Option, unwrap(), or unsafe code can make those bugs harder to find. section 6.4








