All cheatsheetsOpen Rust editor

Rust Online Compiler

Write, Run & Share Rust code online using CodeCompiler's free Rust editor. Rust is a systems language focused on safety, speed, and concurrency.

About Rust

Rust prevents segfaults and guarantees thread safety through its ownership model — without a garbage collector.

Hello World

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