Rust playground

fn greet(name: &str) {
    println!("Hello, {}!", name);
}

fn main() {
    greet("World");
}

Rust is a multi-paradigm programming language that emphasizes performance, type safety, and concurrency. It enforces memory safety—ensuring without requiring the use of a garbage collector.

⛫ homepage • αω tutorial • ⚘ community

Sandbox details

Rust version:       1.71
sandbox engine:     codapi
sandbox name:       rust
allowed commands:   run
in-browser:         ✘

Usage example:

<pre><code>...</code></pre>
<codapi-snippet sandbox="rust" editor="basic"></codapi-snippet>

Documentation