learning-rust.github.io icon indicating copy to clipboard operation
learning-rust.github.io copied to clipboard

Rust Programming Language Tutorials for Everyone!

Learning Rust

Basics

  • Why Rust
  • Installation
  • Hello World
  • Cargo,crates and basic project structure
  • Comments and documenting the code
  • Variable bindings, constants and statics
  • Functions
  • Primitive data types
  • Operators
  • Control flows

Beyond The Basics

  • Vectors
  • Structs
  • Enums
  • Generics
  • Impls and traits

The Tough Part

  • Ownership
  • Borrowing
  • Lifetimes

Lets Get It Started

  • Code organization
  • Functions
  • Modules
  • Crates
  • Workspaces
  • use
  • std, primitives and preludes

Error Handling

  • Smart Compiler
  • Panicking
  • Option and Result
  • Unwrap and Expect
  • Error and None Propagation
  • Combinators
  • Custom Error Types

  • Site : http://learning-rust.github.io
  • Medium: https://medium.com/learning-rust

🐣 I am a Sri LankanπŸ‡±πŸ‡° Web Developer who lives in SingaporeπŸ‡ΈπŸ‡¬. I am not a native English speaker and just practicing Rust in my leisure time, while working as a Golang/Devops developer. So, if you found any mistake or something I need to be changed, even a spelling/ grammar mistake, feel free to buzz me.


learning-rust.github.io(source)

The website is built with Hexo Nodejs blog framework. You can see the generated files at learning-rust/learning-rust.github.io repository.

Getting started

Install dependencies:

$ git clone https://github.com/learning-rust/site.git
$ cd site
$ npm install

Generate:

$ hexo generate

Run server:

$ hexo server