Rust Playground

Open Source

by Rust Playground

Provided by Rust Playground

Not yet rated
Platform
Web
Pricing
Open Source
Account required
No
Ads
None
Last verified
14 hours ago
Developer
Rust Playground
Official URL

Overview

The Rust Playground is the official browser-based sandbox for writing, compiling and running Rust code without installing a toolchain. It is maintained under the rust-lang GitHub organisation, and links to it appear throughout Rust documentation and forum posts as the standard way to share a runnable snippet.

You can compile in debug or release mode against the stable, beta or nightly channel, run tests, and use the built-in tools menu to format code with rustfmt, lint it with Clippy or check for undefined behaviour with Miri. It can also show the generated assembly, LLVM IR, MIR or WebAssembly, which makes it popular for answering performance and codegen questions. The top 100 crates on crates.io, plus the Rust Cookbook crates and their dependencies, are available to use.

Code runs in isolated Docker containers on the server, with no network access and limits on memory and run time. Sharing works by saving your code to a GitHub Gist and handing out a link that loads it back into the playground.

Features

  • Compile and run Rust in the browser on stable, beta or nightly
  • Debug and release build modes, plus running tests
  • rustfmt, Clippy and Miri from the Tools menu
  • View x86_64 assembly, LLVM IR, MIR or WebAssembly output
  • Top 100 crates.io crates and Rust Cookbook crates preinstalled
  • Share code through a GitHub Gist link or a code URL parameter
  • Editor options with Emacs and Vim keybindings and several themes

Privacy

Your most recent code is saved in your browser's local storage. Sharing creates a GitHub Gist, so shared code is stored on GitHub and visible to anyone with the link.

Pros & Cons

Pros

  • Official Rust project tool, free and open source
  • No account or installation needed
  • Great for sharing reproducible snippets in issues and forums
  • Easy access to nightly and to codegen output for experiments

Cons

  • No network access and only a fixed set of crates, so many real projects will not build
  • Memory and run time are capped
  • Not a full IDE; single-file programs only

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • Code Playgrounds · JSFiddle

    An online code editor and playground for HTML, CSS, and JavaScript.

    Not yet rated
    Freemium Web
  • Code Playgrounds · CodePen

    A social code playground for front-end code.

    Not yet rated
    Freemium Web
  • Code Playgrounds · JS Bin

    A collaborative JavaScript, HTML, and CSS playground.

    Not yet rated
    Open Source Web
  • Code Playgrounds · PlayCode

    A fast online JavaScript playground with live preview.

    Not yet rated
    Freemium Web