Recommended way to install Rust on Ubuntu and other distributions

I recommend only the path of installing rustup, since installing via apt will result in outdated versions of Rust, which are incompatible with many libraries and tools.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh