csalmeida / learning-rust

Learning Rust by following the Rust Programming Language Book.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Learning rust

This repo stores some of the programs made while following the documentation available on the Rust Programming Language book (second edition).

Setup

Install Rust on macOS and Linux using:

$ curl https://sh.rustup.rs -sSf | sh

Follow the installation instructions on the official guide for Windows.

Running Rust programs

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

Offline Rust Book

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

About

Learning Rust by following the Rust Programming Language Book.


Languages

Language:Rust 100.0%