Rustic Playground icon
The Rust Edition

A playground for
learning Rust

A macOS desktop app inspired by Swift Playgrounds. Write code, press ⌘R, see output stream live. No terminal required.

Download for macOS View Source
Rustic Playground in Dark, Rust, and Light themes — writing and running Rust code with live console output

Dark, Rust, and Light themes — writing and running Rust code with interactive console

Everything you need to learn Rust

A focused environment for writing, running, and experimenting with Rust code.

Live Execution

Press ⌘R to compile and run. Stdout and stderr stream in real time to the Console panel. No terminal switching.

📝

Monaco Editor

Full-featured code editor with syntax highlighting, live error checking via cargo check, and inline diagnostics.

📚

Rust Book Examples

20 chapters of curated examples based on The Rust Programming Language. Read-only reference material you can copy and modify.

📦

Project Workspaces

Each project is an isolated Cargo package. Multiple playgrounds per project, shared dependencies via Cargo.toml.

🎨

Themes

Dark, Light, Rust, and System themes. Both the editor and app chrome switch together for a cohesive look.

📄

Starter Templates

Hello World, CLI Input, Structs, Error Handling, and more. Templates auto-add required dependencies.

Interactive Console

Programs that read from stdin get a live input field. Prompts without trailing newlines appear immediately.

📋

Content Files

Attach CSV, JSON, or any file to a project. Access at runtime via the PLAYGROUND_CONTENT environment variable.

🔧

Guided Toolchain Setup

Detects Xcode CLT and Rust on launch. Two paths: "Help Me Install" (guided, in-app) or "I'll Do It Myself" (Terminal commands with copy-to-clipboard). No terminal needed for a complete Rust setup from scratch.

🔒

Welcome Wizard

5-step first-launch setup: check toolchain, choose theme, set font, load Rust Book examples. Skipped toolchain shows a red indicator so you know to come back.

Code-Signed & Notarized

Distributed as a signed, Apple-notarized DMG. Gatekeeper recognizes the app as trusted on first launch — no "unidentified developer" warnings.

Zero to running Rust in minutes

The Welcome Wizard handles everything — Xcode CLT, Rust toolchain, theme, and book examples. No terminal needed.

Welcome Wizard screenshot

Toolchain missing? The wizard detects it automatically.

How it works

Four steps from launch to running code.

Create a project

An isolated Cargo package for your experiments. Its own config, dependencies, and playgrounds.

Write a playground

Each playground is a .rs file with a fn main(). Pick a template or start blank.

Press ⌘R

The app compiles with cargo run and streams output live. Errors show inline in the editor.

Iterate

Edit, run, repeat. Save with ⌘S. Add dependencies from the toolbar. Export when you're ready.

Learn from The Rust Book

20 chapters of runnable examples, built right into the app.

The Rust Programming Language (2024 Edition)

Curated examples covering ownership, borrowing, structs, enums, pattern matching, error handling, generics, traits, lifetimes, closures, iterators, smart pointers, concurrency, and more.

Book projects are read-only reference material. Right-click any example and choose "Copy to Project" to create an editable copy in your own workspace.

Based on The Rust Programming Language by Steve Klabnik & Carol Nichols. License: MIT / Apache-2.0. Read online

Rust theme showing book examples

Keyboard-first workflow

Familiar macOS shortcuts. No menus required.

Run & Edit

⌘R Run playground
⌘. Stop process
⌘S Save file
⌘N New playground
⌘W Close tab

Project & Window

⌘⇧N New project
⌘, Settings
⌘⇧/ Help

Requirements

Runs on macOS 12 Monterey or later. Install the Rust toolchain via rustup — or let the in-app installer do it for you.

macOS 12 Monterey or later
Xcode Command Line Tools Required — Rust needs Apple's linker and SDK
Rust toolchain stable — install via rustup.rs

Don't have these installed? The app includes a guided installer for both Xcode CLT and Rust. Choose "Help Me Install" for in-app setup, or "I'll Do It Myself" for Terminal commands you can copy and paste.

On a Mac without developer tools, macOS may show an “Install Command Line Developer Tools” dialog on first launch. This is triggered by macOS, not by the app. You can dismiss it — the app will guide you through installation when you're ready via Help → Rust Help.

This app is intentionally not sandboxed

Like Xcode, VS Code, and Terminal, Rustic Playground compiles and executes arbitrary code using your local cargo toolchain. Any playground you run has full access to your filesystem, network, and processes.

Playground names are validated to prevent path traversal. Toolchains are invoked via absolute paths. Only run code you wrote or fully understand.

Support

Found a bug, have a question, or want to suggest a feature?

Start learning Rust today

Download Rustic Playground and write your first program in under a minute.