/learn_rust_finally

Rust from 0 to Graydon Hoare

Primary LanguageRust

Learn Rust finally

When learning the new programing language there is are mutliple ways how to do it advent of code and, or good book

Advent of code

In the first part we gonna look at Andvet of code

A Guide to the Labyrinth of Algorithms

Amazing Czech book about Algorythm and data structures Průvodce labyrintem algoritmů I chose this is by two amazing autors and profesors from prestigous Martin Mareš, Tomáš Valla

For begining

Let's install rust and do first hello world

  1. Install rust I am on mac so i will be using homebrew
brew install rust
  1. Update Rust
rustup update
  1. Intialize cargo(if you are in existing repository)/create new cargo project
cargo init
cargo new hello-world
  1. Hello world in main.rs
fn main() {
    println!("Hello, World!");
}
  1. Build the code
rustc src/main.rs
  1. Run Main
./main