No description
| fibonacci | ||
| guessing_game | ||
| hello_cargo | ||
| temperature_convertor | ||
| .gitignore | ||
| README.md | ||
Rust "The Book" exercices
A collection of the examples/exercices/... found in the rust tutorial "The Book", collected for my own reference.
Interesting commands
Compile
- Debug
$> cargo build
- Release
$> cargo build --release
- Check
This is usefull in f.e. CI's to quickly check if our project can compile:
$> cargo check
Documentation
Make and open the documentation in your favorite web browser:
$> cargo doc --open
Format
To format the code:
$> cargo fmt
Interesting things to know
-
A char is 4 bytes in Rust!
-
Breaking with a value is only possible inside a 'loop' not a 'while/for' loop!