Rust stable, 2021 edition · no installation required

Rust Playground Online

Run Rust code online with a free browser playground. Compile Rust programming examples instantly, test ownership and borrowing snippets, and practice without installing Rust.

Open the Rust playground

A small Rust starter

Review this deterministic example, then open it in the full sandbox when you are ready to edit and run code.

fn main() {
    let language = "Rust";
    println!("Hello, {language}!");
}

Expected output

Hello, Rust!

Common uses

  • Explore ownership and borrowing
  • Test small algorithms
  • Read compiler diagnostics

Know the limits

Best for focused examples. Multi-file Cargo projects, long-running services, and unrestricted network access belong in a local development environment.

Continue with Rust lessons

Turn a quick experiment into structured practice with these course lessons.