- Install rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shPress Enter to accept the default install.
- Load Cargo into this terminal
source "$HOME/.cargo/env" - Start a project
cargo new hello && cd hello && cargo run
Check it worked
- Check the versions
rustc --version && cargo --version
Undo it
- Uninstall Rust
rustup self uninstall
- Install rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shRust needs a linker. Install the build tools first if you haven't.
- Load Cargo into this terminal
source "$HOME/.cargo/env" - Start a project
cargo new hello && cd hello && cargo run
Check it worked
- Check the versions
rustc --version && cargo --version
Undo it
- Uninstall Rust
rustup self uninstall
- Install rustup
winget install Rustlang.RustupRust on Windows needs the Visual Studio C++ build tools. Install them first, then close and reopen PowerShell.
- Start a project
cargo new hello; cd hello; cargo run
Check it worked
- Check the versions
rustc --version; cargo --version
Undo it
- Uninstall Rust
rustup self uninstall