Rust installation

Installing Rustup

curl -sSf | sh
vim ~/.zshrc
# add following line  
export PATH=$PATH:/home/msanchez/.cargo/bin
source ~/.zshrc


I use PyCharm from Jetbrains. There’s a plugin to do it compatible with Rust.

Hello World

Create a new file, on rust composed words are marked with underscore as

fn main() {
  println!("hello world");

Compile it into binaries rustc
Execute the binaries ./hello_world