Skip to content
SPECIFICTION
Get listed

Rust Playground

play.rust-lang.org

Free plan WebSelf-hosted

What it is

Rust Playground is a free web tool for trying Rust when a local installation or compiler is unavailable. Its syntax-highlighted editor compiles code in debug or release mode against the stable, beta, or nightly channel. The available crates include the top 100 by all-time downloads, Rust Cookbook crates, and their dependencies, though some candidates are omitted if they fail to compile on Linux or stable Rust or have invalid feature selections. Users can run rustfmt and Clippy, or inspect LLVM IR, assembly, and Rust MIR. Code can be loaded from or saved to a GitHub Gist and shared; Rust documentation and mdbook examples can also link to code for editing or execution. Docker containers supply and isolate its compilers and tools. Compilation and execution have no outside network access and are limited by memory and time. The latest entered code is saved in browser local storage, shared among windows as a single resource. The project is open source under Apache License 2.0 or MIT. Self-hosting is documented, and requires a GitHub token for Gist loading and saving.

Spec sheet

Purpose
The Playground lets people experiment with Rust before installing it locally or when a compiler is unavailable.Read 12 Oct 2026 · github.com
Audience
The Playground is for experimenting with Rust when a local installation or compiler is unavailable.Read 12 Oct 2026 · github.com
Free plan
YesRead 22 Sep 2026 · play.rust-lang.org
Integrations
The interface uses React, the backend uses Axum, and code sharing uses GitHub Gist.Read 11 Oct 2026 · github.com
Available crates
It provides the top 100 crates by all-time downloads, Rust Cookbook crates, and their dependencies.Read 11 Oct 2026 · github.com
Code persistence
The most recently entered code is automatically saved in browser local storage, which is shared across windows as a single resource.Read 12 Oct 2026 · play.rust-lang.org
Code tools
Users can run rustfmt and Clippy and inspect LLVM IR, assembly, or Rust MIR.Read 11 Oct 2026 · github.com
Compiler output
It can display LLVM IR, assembly, or Rust MIR for source code.Read 12 Oct 2026 · github.com
Crate availability
Some otherwise eligible crates may be excluded if they do not compile on Linux or stable Rust, or have invalid feature flag selections.Read 12 Oct 2026 · github.com
Crates
It includes the top 100 crates by all-time downloads, crates from the Rust Cookbook, and their dependencies.Read 12 Oct 2026 · github.com
Deployment options
noneRead 22 Sep 2026 · play.rust-lang.org
Disk limitation
The project README says its sandbox has no disk space limits and recommends limiting the temporary directory when running a server.Read 11 Oct 2026 · github.com
Editor
It provides a browser editor with syntax highlighting.Read 12 Oct 2026 · github.com
Full-stack runtime
NoRead 22 Sep 2026 · play.rust-lang.org
Gist setup
For a self-hosted server, a GitHub token must be configured to load and save gists.Read 11 Oct 2026 · github.com
Integration
Rust documentation and mdbook examples can link code to the Playground for users to run or edit.Read 12 Oct 2026 · dev-doc.rust-lang.org
Isolation
Docker containers provide compilers and tools and help isolate them; compiler containers have no network connection to the outside world.Read 12 Oct 2026 · github.com
Network limit
Compiler containers have no network connection to the outside world.Read 11 Oct 2026 · github.com
Open source
The repository is licensed under Apache License 2.0 or MIT, at the user's option.Read 11 Oct 2026 · github.com
Resource limits
Compiler and executable memory use and total compilation and execution time are limited by the container.Read 12 Oct 2026 · github.com
Rust channels
Code can be compiled in debug or release mode against stable, beta, or nightly Rust.Read 12 Oct 2026 · github.com
Rust versions and modes
Users can compile in debug or release mode with the current stable, beta, or nightly Rust channel.Read 11 Oct 2026 · github.com
Security reporting
The Playground follows the Rust organization’s security reporting procedures for vulnerability reports.Read 12 Oct 2026 · github.com
Self-hosting
The project documents how to build and run the server and download its compiler containers; a GitHub token is required to load and save Gists on a self-hosted server.Read 12 Oct 2026 · github.com
Sharing
The Playground can load and save code as a GitHub Gist for sharing.Read 12 Oct 2026 · github.com
Sharing controls
link_accessRead 22 Sep 2026 · play.rust-lang.org
Tools
The Playground can run rustfmt and Clippy on source code.Read 12 Oct 2026 · github.com

Plans and prices

Free Free Compilation and execution time limited · Memory limited · No network access during compilation or execution Read 12 Oct 2026 · github.com

Every Rust Playground plan and price →

Strong points and limits

Strong points

  • Compiles stable, beta, and nightly Rust
  • Runs rustfmt and Clippy
  • Shows LLVM IR, assembly, or Rust MIR
  • Supports sharing code through GitHub Gist

Limits

  • No outside network access during compilation or execution
  • Memory and compilation and execution time are limited
  • Some otherwise eligible crates are excluded

Who it suits

Rust Playground suits people who want to experiment with Rust in a browser before installing it locally, or when a compiler is unavailable. It also supports documentation and mdbook examples that link code for users to run or edit.

Verdict

Rust Playground offers a browser-based place to compile, inspect, and share Rust code, with no charge. Its resource limits and lack of network access make it a bounded environment for experimentation.

Where Specifiction places it

Alternatives to Rust PlaygroundAll alternatives →