An exercise in learning some rust via The Rust Programming Language book and Rust by Example.
- To create a new rust project:
cargo new <name>
- To check compilation:
cargo check
- To build:
cargo build
- To run:
cargo run
- To generate project docs and open in a browser:
cargo doc --open
- To update packages:
cargo update
- To get more information about a compilation error:
rustc --explain E0282
(replace with the error no)