Installing Rustup
curl https://sh.rustup.rs -sSf | sh
vim ~/.zshrc
# add following line
export PATH=$PATH:/home/msanchez/.cargo/bin
source ~/.zshrc
IDE
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 hello_world.rs
fn main() {
println!("hello world");
}
Compile it into binaries rustc hello_world.rs
Execute the binaries ./hello_world
Reference(s)
https://doc.rust-lang.org/book/ch01-01-installation.html
https://doc.rust-lang.org/book/ch12-00-an-io-project.html