Skip to content

Rust tutorials and exercises from Rust By Example (RBE), a collection of runnable examples that illustrate various Rust concepts and standard libraries.

Notifications You must be signed in to change notification settings

fabberr/rust-by-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rust-by-example

Rust tutorials and exercises from Rust By Example (RBE), a collection of runnable examples that illustrate various Rust concepts and standard libraries.

Using the toolchain

For the purposes of this tutorial, each example will be made into its own Cargo (Rust package manager and build tools) package. All packages will be initialized with no source control, under the src/ directory, sorted by the order of appearence of their corresponding examples in RBE with the following command:

cargo new --vcs none --name <pkg-name> src/<pkg-index>_<pkg-name>

Or, aternatively, by executing the provided script: ./cargo_new.sh <pkg-name>. Note: You may have to set the appropriate permissions for the script before its first use (e.g. chmod 777 cargo_new.sh - rwx for root, group and user under Unix-like systems).

Navigate to the individual package directories to use the cargo build, cargo run and cargo clean utilities.

About

Rust tutorials and exercises from Rust By Example (RBE), a collection of runnable examples that illustrate various Rust concepts and standard libraries.

Topics

Resources

Stars

Watchers

Forks