This repo stores some of the programs made while following the documentation available on the Rust Programming Language book (second edition).
Install Rust on macOS and Linux using:
$ curl https://sh.rustup.rs -sSf | sh
Follow the installation instructions on the official guide for Windows.
In order to run a program use rustc filename.rs
like so:
$ rustc main.rs
To run programs using Cargo cd
into any project that has a Cargo.toml
file and run:
$ cargo run
To learn on the go Rust allows the learning documentation to be accessed offline. However, some of the lessons require Cargo dependencies to be installed which would require an internet connection.
rustup docs --book