Siilwyn / code-class-js-rust

🦀 Code class about Rust at De Voorhoede.

Home Page:https://siilwyn.github.io/code-class-js-rust/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code class from JS to Rust

Slides

Setup

git clone git@github.com:Siilwyn/code-class-js-rust.git
cd code-class-js-rust

Run exercise

Use cargo run -p followed by the exercise directory name, for example to run the first exercise:

cargo run -p exercise-1

Tip, automatically run the exercise on changes with cargo watch:

cargo watch -x 'run -p exercise-1'

Exercises

One

Based on the compiler errors fix the code to print 2 + 1 = 3.

Two

Add matching quotes to certain users and filter out users with no matching quotes, so {username} - {quote} is printed for each quote.

Solutions

To get the solution for an exercise apply the solution patch file, for example for the first exercise:

git apply exercise-1/solution.patch

<< My previous code class, about GraphQL

About

🦀 Code class about Rust at De Voorhoede.

https://siilwyn.github.io/code-class-js-rust/

License:MIT License


Languages

Language:HTML 57.7%Language:CSS 21.4%Language:Rust 16.4%Language:JavaScript 4.4%