Online Rust Runner
Edit, compile and run Rust with standard input. See program output, compiler diagnostics and runtime errors in a dedicated console.
Rust workspace
Rust 2024 · Standard library
Run code to see its output.
When you run a program, its code and input are sent to a separate sandbox.
Compile and run Rust with standard input
Enter a line in Standard input and read it with std::io::stdin().read_line(&mut buffer). Select Run to compile and see the output. If the compiler rejects your program, check the diagnostic for its line number and suggested fix.
Try the local module example to declare mod greeting in main.rs and use a function from greeting.rs. The isolated compiler uses Rust Edition 2024 and the standard library available in WebAssembly. Draft files are stored in your browser.
Comments
Sign in or create an account to join the discussion.
Loading comments…