Skip to main content


Day 2: Hello, Rust

Hello fellow Rustaceans 🦀!

Welcome back to another article in the "30 Days of Rust" series. Today, we're going to explore the anatomy of a Rust program. We'll learn how to compile a single-file and discuss strategies for managing larger projects with cargo. Let's dive into a simple Rust program and see how it transforms from plain text into an executable.

Let's create your very first Rust file! Start by making a file named Remember, all Rust files use the .rs extension. Now, copy the code below and paste it into your shiny new

fn main() {
    println!("Hello, Rust!");