$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
1を選択
1) Proceed with installation (default)
表示されるメッセージに従って、
$ source $HOME/.cargo/env
$ which rustc (~/.cargo/bin/rustc)
$ rustc --version
1.62.0
$ cargo -V
1.62.0
Install Rust - Rust Programming Language
2022/7/13更新