Print the active Rust compiler version.
Section: Bootstrap and versions
Show rustc version
bash
bash
rustc --versionExplanation
Shows which `rustc` is currently active in your shell.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Bootstrap and versions