Introduction to Rust
Rust is a relatively new programming language that promises to be as fast as C, but less complex and error prone.
Rust compiles directly to machine code, so it doesn’t require a virtual machine. This makes it faster than languages like Java or Python. It also doesn’t use a garbage collector, which makes it faster and more predictive than other compiled languages like Golang.
On top of speed and predictability, Rust also promises a programming model that ensures memory and thread safety, which makes it great for complex applications.
Installation
The recommended way to install rust in Linux and Mac is using this command:
1
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
We will be greeted by this prompt asking to choose an option:
1
2
3
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation