Rust Notes


Notes from learning the Rust language. Using the Brown University experimental fork of “The Rust Programming Language” book.


Rust Basics

Some of the basic bits of information.


Cargo

Cargo is a build system and package manager for Rust. It also does a number of project management tasks like creating git repos, config files and setting up directory structures for a project automatically.

Cargo Commands


Syntax and writing Rust

Rust syntax has some similarities to other programming languages like C.

Rust Basics

Some of the basic bits of information.


Using Libraries

Only a subset of Rust’s standard library is available automatically in a project, this set is known as the prelude. The following is information on how to use other part of the standard library, or other libraries.


use std::io;
#use library_name::sub_library;