When learning the new programing language there is are mutliple ways how to do it advent of code and, or good book
In the first part we gonna look at Andvet of code
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
Let's install rust and do first hello world
- Install rust I am on mac so i will be using homebrew
brew install rust
- Update Rust
rustup update
- Intialize cargo(if you are in existing repository)/create new cargo project
cargo init
cargo new hello-world
- Hello world in main.rs
fn main() {
println!("Hello, World!");
}
- Build the code
rustc src/main.rs
- Run Main
./main