Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: Hello World

  • Make sure you have Rust installed.
  • Try rustc --version.
  • Create a new project with Cargo.
  • Write a program that prints "Hello World".
  • run the program.
  • Add comments to the program and run it again.
  • Extend the program to have your name in a variable and print that too.