main.rs
Loading editor…
ReadyLn 1, Col 1Rust

Rust

Rust online compiler

Run Rust online: compile a single file without a Cargo project and type input in a live terminal. Free and no sign-up.

About this Rust compiler

Rust focuses on safety and performance. This sandbox compiles a single file so you can try ownership examples and small programmes without a full Cargo project.

Questions and answers

Where is Cargo.toml?
Not used. The programme is one file using the standard library, compiled by Rust 1.99 in the 2024 edition.