Skip to content

A beginner-friendly repository covering fundamental Rust concepts with well-structured code examples and explanations. Ideal for getting started with Rust programming.

License

Notifications You must be signed in to change notification settings

GRB-Workspace/Rust-Intro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Rust Logo

Rust Intro

A hands-on repository demonstrating the fundamental concepts of Rust with practical examples and concise explanations.

Rust Note: Rust Crash Course

· Report Bug · Request Feature


Table of Contents
  1. About The Project
  2. Getting Started
  3. Resources
  4. Video Source (Playlist)
  5. Contact

About The Project

Rust Intro is a beginner-friendly repository aimed at helping developers explore the fundamentals of the Rust programming language. Each module within this project covers essential Rust concepts such as variables, data types, ownership, references and borrowing, generics, traits, and more, accompanied by practical code examples.

Rust is known for its performance, reliability, and memory safety guarantees without a garbage collector. This repository is designed to offer a clear, hands-on introduction for those looking to get started with Rust or strengthen their foundational knowledge.

Core Features

  • Comprehensive Modules
    Organized by topic (e.g., variables, data types, ownership, error handling, etc.) for easier navigation and learning.

  • Practical Code Examples
    Each concept is backed by runnable examples to demonstrate real-world usage and best practices.

  • Commentary & Explanation
    In-line code comments and descriptive explanations help clarify why certain approaches are used.

  • Ready-to-Run
    Easily compile and run any module with cargo run or load it into the Rust Playground for quick experimentation.

(back to top)


Built With

  • Rust – Systems programming language focusing on safety and performance
  • Cargo – Official Rust package manager and build tool
  • VSCode / RustRover / Your Favorite Editor – Flexible environment for Rust development

(back to top)


Getting Started

Follow the instructions below to set up the Rust Intro project locally and begin exploring the code examples.

Prerequisites

  • Rust (Stable channel)
    If you don’t have Rust installed, you can do so via the Rust Installation Guide.
  • Cargo (Installed alongside Rust)
  • Git (to clone the repository)

Installation and Setup

  1. Clone the repository:

    git clone https://github.com/GRB-Workspace/Rust-Intro.git
    cd Rust-Intro
  2. Explore modules and examples:

    • Open the project in your preferred IDE or text editor.
    • Each module is located under src/, showcasing different Rust concepts.
  3. Run a specific module (example):

    # Switch to the module you want to run in main.rs or pass arguments to the code
    cargo run
  4. Compile without running (for checks and errors):

    cargo build

(back to top)


Project Structure

A simplified overview of the directory structure:

.
├── src/
│   ├── garden.rs
│   ├── vegetables.rs
│   ├── data_types.rs
│   ├── ownership.rs
│   ├── references_borrowing.rs
│   ├── match_statement.rs
│   ├── functions.rs
│   ├── ...
│   └── main.rs
├── Cargo.toml
├── Cargo.lock
├── .gitignore
└── README.md
  • src/ – Contains Rust source files for each concept or module.
  • main.rs – Entry point for the application. Switch to any module you want to test or run.
  • Cargo.toml – Project configuration file, listing dependencies and metadata.
  • Cargo.lock – Auto-generated file that ensures consistent builds.

(back to top)


Resources

Below are some additional resources to help you learn and explore Rust:

(back to top)


Video Source (Playlist)

For a more guided, visual approach to learning Rust, check out this YouTube Playlist where Rust fundamentals are explained in-depth with practical demonstrations.

(back to top)


Contact

(back to top)


© 2025 Gayanuka Bulegoda


About

A beginner-friendly repository covering fundamental Rust concepts with well-structured code examples and explanations. Ideal for getting started with Rust programming.

Topics

Resources

License

Stars

Watchers

Forks

Languages