1. Make the compiler your teammate
4 min
One idea
Rust feels strict because the compiler checks your code before users hit bugs. Treat each error as a small task list: where it happened, what Rust expected, and what you can change.
What Cargo gives you
Cargo is Rust’s project tool. It creates the folder, stores project settings, builds your code, runs it, and later helps you add crates.
For your HackIndia submission, Cargo matters because reviewers can clone your repo and run the same commands you ran.
Start a CLI project
Do each one yourself, then tap it to tick it off. The ticks are only a checklist for you: they are not marked or scored.
0 of 5 done
cargo new rust-attendance-cli
cd rust-attendance-cli
cargo run
cargo checkFirst useful output
Open src/main.rs and replace the starter code. Keep it simple for now. The goal today is to see the edit-check-run loop.
fn main() {
let course = "Data Structures";
let present = 42;
println!("{} attendance count: {}", course, present);
}