Following along with the Microsoft Learn course Take your first steps with Rust https://learn.microsoft.com/en-us/training/paths/rust-first-steps/.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Confirm installation
rustc --version
rustc 1.65.0 (897e37553 2022-11-02)
cargo --version
cargo 1.65.0 (4bc8f24d3 2022-10-20)