Introduction to Rust - Learn with SparkLab (Let's Build Something) | Online Course
Courses / Introduction to Rust

Introduction to Rust

Course Details

Contents

1 lessons

Access

Public

Plan

FREE
Jezreel James Cruz

Instructor

Jezreel James Cruz

from SparkLab (Let's Build Something)

About this Course

In this course, you’ll learn the fundamentals of Rust by writing real code, not just reading syntax. We’ll cover core concepts like ownership, borrowing, variables, functions, control flow, and basic project structure using Cargo.

This course is designed for:

beginners who want to learn Rust from ...

# Syllabus

1 items
1

# Lesson 1: Understanding Rust and Cargo

Text

Understanding Rust and Cargo

Overview

Sa lesson na ito, bubuo tayo ng malinaw na mental model kung ano ang Rust at bakit mahalaga ang Cargo.
Bago tayo magsulat ng kahit isang linya ng code, kailangan muna nating maintindihan kung paano mag-isip ang Rust at paano pinapamahalaan ng Cargo ang isang project.

Ang focus ng lesson na ito ay pag-intindi ng concepts, hindi agad syntax.


Ano ang Rust?

Ang Rust ay isang systems programming language na dinisenyo para magbigay ng:

  • Mataas na performance (katulad ng C/C++)
  • Malakas na memory safety
  • Safe concurrency kahit walang garbage collector

Pinipigilan ng Rust ang mga karaniwang bugs tulad ng:

  • Null pointer errors
  • Use-after-free
  • Data races sa multi-threading

Ang mahalaga dito:
👉 Nahuhuli ng Rust ang mga error habang nagco-compile pa lang, hindi na sa runtime.


Bakit Nilikha ang Rust?

Ang mga traditional systems languages ay nagbibigay ng full control sa memory, pero delikado ito kapag mali ang paggamit.

Ginawa ang Rust para solusyunan ang:

  • Memory corruption
  • Random crashes
  • Security vulnerabilities

Ginagawa ito ng Rust gamit ang ownership at borrowing system, na nagpapatupad ng rules para manatiling safe ang memory ng program.


Ano ang Cargo?

Ang Cargo ay ang official build system at package manager ng Rust.

Si Cargo ang bahala sa:

  • Pag-create ng Rust projects
  • Pag-manage ng dependencies
  • Pag-build at compile ng code
  • Pag-run ng tests
  • Pag-generate ng documentation

Sa Rust, hindi ka mano-manong nagko-compile ng files.
Si Cargo ang nag-aasikaso ng buong workflow.


Bakit Mahalaga ang Cargo?

Nilulutas ng Cargo ang mga common problems sa real-world development:

  • Dependency conflicts
  • Hindi consistent na builds
  • Complicated build commands

Kapag Cargo ang gamit:

  • Pare-pareho ang build kahit saan machine
  • Mas madaling mag-scale ang project
  • Mas maayos ang collaboration sa team

👉 Hindi optional ang Cargo — core siya ng Rust ecosystem.


Mahahalagang Terminology

Bago magpatuloy, tandaan ang mga terms na ito:

  • Crate – Isang compiled unit (library o executable)
  • Package – Isang project na pinamamahalaan ng Cargo
  • Module – Para sa pag-oorganize ng code
  • Dependency – External code na ginagamit ng project

Makikita mo ang mga salitang ito sa halos lahat ng Rust projects.


Tamang Mental Model (Importante)

Isipin mo ang Rust at Cargo ng ganito:

  • Rust → Ang language na nag-eenforce ng safety at performance
  • Cargo → Ang system na nagbu-build, nagma-manage, at nag-oorganize ng project

Sa totoong development, hindi mo halos gagamitin ang Rust nang walang Cargo.


Ano ang Dapat Mong Maintindihan Pagkatapos ng Lesson na Ito

Pagkatapos ng lesson, dapat kaya mo nang:

  • Ipaliwanag kung ano ang Rust at bakit ito ginawa
  • Sabihin kung ano ang role ng Cargo
  • Maintindihan ang basic Rust ecosystem terms
  • Ma-realize kung bakit central ang Cargo sa Rust development

Preview ng Next Lesson

Sa susunod na lesson, gagawin natin ang:

  • Pag-install ng Rust at Cargo
  • Pag-create ng first Rust project
  • Pag-explore ng default project structure
Added January 8, 2026
Introduction to Rust
FREE ACCESS

Current Status

Open for Enrollment

Instant access. No credit card required.