Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fabberr/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.
https://github.com/fabberr/rust-by-example

rust rust-by-example tutorial-exercises

Last synced: 8 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# rust-by-example

Rust tutorials and exercises from [Rust By Example](https://doc.rust-lang.org/stable/rust-by-example/index.html) (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 src/_```

Or, aternatively, by executing the provided script: `./cargo_new.sh `. 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.