Rust and Cargo 1 · Code patterns

Hello world

The smallest runnable Rust program.

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

Official Rust and Cargo 1 documentation

More code patterns commands

All code patterns commands · Rust and Cargo 1 cheatsheet

Was this page helpful?