Skip to Content
Search
Blog Index

Hello World!

 · 1 min read  —  #Rust #Hello World

Hello World!

Hello World! This is my first post on the new blogs. I hope you enjoy it.

Hello World in Rust

Rust has quickly become one of my favorite languages alongside Go. Here’s the classic hello world:

fn main() {
    println!("Hello, world!");
}

What I love about Rust is its focus on safety and performance. Even a simple hello world compiles to a fast, memory-safe binary with zero runtime overhead.

You can build and run it with:

rustc main.rs
./main

Or using Cargo, Rust’s build system and package manager:

cargo new hello-world
cd hello-world
cargo run

The generated src/main.rs will already contain the hello world program above. Cargo handles compilation, dependency management, and much more — making Rust development a pleasure.