@ University of Kent
CO663 Class - Learning Rust
This is all based on the tutorials from https://doc.rust-lang.org/stable/rust-by-example/
First, you're gonna need Rust installed.
Follow the instructions here
Or if you are on MacOS like I was, just run:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shOnce you have the cli tools installed, compiling and running rust files is as easy as:
rustc hello-world.rs
./hello-worldOr, for the other projects with multiple files, it's just easier to use cargo. E.G.: for "guessing-game", run the following:
cd guessing-game
cargo run