/learn-rust

A repo where I will be following along with the Rust Programming Language Book

Primary LanguageRust

Learning Rust

This repo is where I will be following along with The Rust Programming Language book, A.K.A. "The Book".

Important commands

cargo new <project name>

Creates a new project set up with cargo

cargo build

Compiles you project and puts a binary in target/debug/

cargo run

Will compile and then run the generated binary

cargo check

Checks to see if the code compiles

cargo build --release

Compiles the code with optimizations. It creates a binary in target/release/.

cargo doc --open

Generates documentation for all of your dependencies locally.

Placeholder

https://doc.rust-lang.org/stable/book/ch02-00-guessing-game-tutorial.html#allowing-multiple-guesses-with-looping