Loading video player...
Welcome back to The Thinking Terminal! In this video, we’re diving deep into Modules and Crates in Rust — the building blocks that help you organize, scale, and reuse your code effectively. You’ll learn step by step: 🔹 What are modules and how to declare them using mod 🔹 The difference between private and public items using pub 🔹 How to split your code into multiple files and folders 🔹 Using use and as to simplify long paths 🔹 Group imports and wildcard imports 🔹 What are crates, and the difference between binary and library crates 🔹 How to create internal crates within a workspace 🔹 How to use external crates from crates.io like rand 📦 By the end of this video, you’ll know how to structure professional Rust projects — from small scripts to large applications — using clean, modular, and reusable code. 🧠 Topics covered: mod, pub, and use keywords Folder-based module organization mod.rs entry files Creating internal library crates Adding dependencies in Cargo.toml Using external crates like rand 💬 Try this: After watching, create your own mini-library crate and call it from your main Rust project. See how it improves readability and reusability!