An in-depth resource to learn Rust 馃

Related tags

Miscellaneous rust
Overview

Learning Rust 馃

Hello friend! 馃憢

Welcome to my "Learning Rust" repo, a home for my notes as I'm learning Rust. I'm structuring everything into lessons, which can be found in lessons directory. Each lesson is its own cargo project, so you can cd into it and run it by executing cargo run in your terminal. To start learning, open the src/main.rs file in each lesson.

To solidify your knowledge, some lessons also include challenges, which live in the examples directory. You can run the challenges by executing cargo run --example [CHALLENGE_FILE_NAME] without the .rs extension, for example cargo run --example leap-year if the challenge file is named leap-year.rs.

I'm explaining the concepts with comments, followed by an example code block. All of the lessons are runable, so you can clone this repo and play around with the examples. Make sure you pull from this repo from time to time to get the new lessons as I'm publishing them.

My main learning resource is The Rust Programming Language Book.

So poke around the repo and have fun! If you see a typo, or have a good example/challenge in mind, feel free to open a PR.

P.S. This could turn into a workshop! Hit me up on Twitter if you're interested!

System Requirements

Make sure you have Rust and Cargo installed to run the lessons and challenges. Follow the official installation guide.

You might also like...
`Debug` in rust, but only supports valid rust syntax and outputs nicely formatted using pretty-please
`Debug` in rust, but only supports valid rust syntax and outputs nicely formatted using pretty-please

dbg-pls A Debug-like trait for rust that outputs properly formatted code Showcase Take the following code: let code = r#" [ "Hello, World!

Playing with web dev in Rust. This is a sample Rust microservice that can be deployed on Kubernetes.

Playing with web dev in Rust. This is a sample Rust microservice that can be deployed on Kubernetes.

馃悁 Building a federated alternative to reddit in rust

Lemmy A link aggregator / Reddit clone for the fediverse. Join Lemmy 路 Documentation 路 Report Bug 路 Request Feature 路 Releases 路 Code of Conduct About

Applied offensive security with Rust
Applied offensive security with Rust

Black Hat Rust - Early Access Deep dive into offensive security with the Rust programming language Buy the book now! Summary Whether in movies or main

Rholang runtime in rust

Rholang Runtime A rholang runtime written in Rust.

Easy-to-use optional function arguments for Rust

OptArgs uses const generics to ensure compile-time correctness. I've taken the liberty of expanding and humanizing the macros in the reference examples.

A language server for lua written in rust

lua-analyzer lua-analyzer is a lsp server for lua. This is mostly for me to learn the lsp protocol and language analysis so suggestions are helpful. T

Rust library that can be reset if you think it's slow

GoodbyeKT Rust library that can be reset if you think it's slow

Cargo - The Rust package manager

Cargo downloads your Rust project鈥檚 dependencies and compiles your project.

Comments
  • Add challenges for each lesson

    Add challenges for each lesson

    Adding challenges for each lesson is the best way to solidify the knowledge. Create an examples directory in each lesson and add a few challenges inside.

    enhancement 
    opened by nikolovlazar 0
Owner
Lazar Nikolov
Partner @codechem. Core & DevRel at @chakra-ui. Instructor @eggheadio. Streaming #WebDev on https://twitch.tv/nikolovlazar. OSS Advocate 馃
Lazar Nikolov
An ability / resource / cooldown management library for Bevy.

About leafwing-abilities is an opinionated, ready-to-use Bevy library and plugin for handling abilities. It features: cooldown tracking resource manag

null 2 Mar 30, 2022
First Git on Rust is reimplementation with rust in order to learn about rust, c and git.

First Git on Rust First Git on Rust is reimplementation with rust in order to learn about rust, c and git. Reference project This project refer to the

Nobkz 1 Jan 28, 2022
This is a Telegram bot I'm working on in my free time to learn Rust.

Maldness Bot This is a Telegram bot I'm working on in my free time to learn Rust. Building docker build -t . should be enough.

Sergey Kislyakov 10 May 13, 2022
Advent of Code 2015, done entirely in Rust both for the challenge and as a way to learn

Advent of Code 2015 In preparation for Advent of Code 2021, I wanted to go back and try some of the older challenges. I figured it made the most sense

Matt 1 Dec 9, 2021
Examples from the talk Why you should learn Rust

Why you should learn Rust: Examples This repository contains the examples from the talk "Why you should learn Rust". All examples demonstrate that the

Bj枚rn Lange 1 Aug 12, 2022
Milho (corn in portuguese) is a toy dialect of Lisp written as a way to learn more about compilers

Milho (corn in portuguese) is a toy dialect of Lisp written as a way to learn more about compilers. There are implementations in rust and go

Celso Bonutti 27 May 4, 2022
A bunch of commented Anchor programs and JavaScript tests, to help me learn Anchor.

learning-anchor A bunch of commented Anchor programs and JavaScript tests, to help me learn Anchor.

Matt Lim 3 Nov 21, 2021
A stupid macro that compiles and executes Rust and spits the output directly into your Rust code

inline-rust This is a stupid macro inspired by inline-python that compiles and executes Rust and spits the output directly into your Rust code. There

William 19 Nov 29, 2022
A highly modular Bitcoin Lightning library written in Rust. Its Rust-Lightning, not Rusty's Lightning!

Rust-Lightning is a Bitcoin Lightning library written in Rust. The main crate, lightning, does not handle networking, persistence, or any other I/O. Thus, it is runtime-agnostic, but users must implement basic networking logic, chain interactions, and disk storage. More information is available in the About section.

Lightning Dev Kit 850 Jan 3, 2023
Telegram bot help you to run Rust code in Telegram via Rust playground

RPG_BOT (Rust Playground Bot) Telegram bot help you to run Rust code in Telegram via Rust playground Bot interface The bot supports 3 straightforward

TheAwiteb 8 Dec 6, 2022