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:

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

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

Documentation