Personal Learning Rust Journey

Code written/copied by going through the excellent Rust introduction book: https://doc.rust-lang.org/book/title-page.html.

Learnings

1 cargo

Cargo is your friend

  • cargo new [PROJECT_NAME]
  • cargo build
  • cargo run
  • cargo run --example [EXAMPLE_NAME]

2 /examples

Example code can be put into /examples folder nad build via cargo run --example [EXAMPLE_NAME].

3 Cargo.toml

Cargo.toml file is super cool, its where all meta data goes.