Home

Awesome

WebZero Hackerhouse Rust Workshop - An Intro to Rust

The slides are available on hackMD, but also here in the repo:HACKMD.md.. Examples for teaching a quick "Rust 101" is also available: EXAMPLES.md The hosted version can be found here.

This workshop focuses on two main objectives, mainly:

  1. Providing a basic introduction to Rust, and the necessary features to complete the workshop
  2. Complete the "story" using those concepts

Note that some of these concepts are not necessarily blockchain specific, but analogies can easily be made, making this a versatile workshop.

This workshop was created to take around 1 hour, as it has them potentially install Rust, then go over its basics and how they roughly work.

It is also catered to a Substrate-style version of development, in which types are used as the bounds for configuring various traits. The goal is to expose the students to a generic-style API, although this isn't compressive, it serves as an intro to some of these concepts.

Project Structure

This project is a workspace, primarily so that we can explain what one is. It doesn't use it in any meaningful way yet, but it's a place to keep all of our crates.

Story: The Factory

For this workshop, we will go launch a Factory. This factory has the following flow:

A completed version of this is located within factory, which one could theoritcally turn into a library then use in scratchpad (it would be good practice).

Analogies to draw

An example scenario: IronOre -> Steel

In our scenario, we have a raw material, iron ore (IronOre), and we wish to process it into steel (Steel).

Rust Concepts to Highlight

Example steps to follow

See the hackMD slide readme for more detail: HACKMD..