- Chapter 2, Programming a Guessing Game
- https://doc.rust-lang.org/book/ch02-00-guessing-game-tutorial.html
- Using cargo and crates
let
,match
,mut
,&
, functions, random numbers, comparing,Result
handling- note: newer versions of
rand::Rng
methodgen_range
useRanges
instead of two integers.
- Tutorial https://jason-williams.co.uk/debugging-rust-in-vscode
- CodeLLDB - debugger for binaries https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
- Or use Microsoft debugger https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools
- (recommended) Rust Analyzer (RA) language server https://github.com/rust-analyzer/rust-analyzer
- Tutorial https://dev.to/thiagomg/developing-in-rust-using-visual-studio-code-4kkl