status: experimental / pre-release / guaranteed buggy
The is a standalone native mac application that allows quickly editing and testing rust snippets.
You can download a disk image of a recent build on the releases page.
The playground requires rustup, and allows code to be run with any installed toolchain.
note: Rustup must currently be in the default directory,
install from source (requires Xcode)
- clone this repository
- cd in to the
xcodebuildfrom the command line
build/Release/Rust Playground.appto your
This project is based on a fork of the xi-editor core. It is intended largely as an experimental offshoot of xi; a narrowly scoped editor frontend that can be used to experiment with various design decisions.
Document state is handled in rust; the swift frontend interfaces with the rust code via FFI.
- syntax highlighting
- font selection
- comment toggling
- line breaking
- extern crates (with a hacky custom syntax for declaring imports)
- use any installed toolchains
- Performance is not great; it is expected that documents are only ever a few hundred lines.
- Drawing is hacky. We may draw ghost selections.
- ~export to gist / web playground~
- export to new cargo project?
- rustfmt / clippy
- multiple documents, saving snippets?
- ASM / IR output
One day, maybe
- integrate with cargo-instruments
- inline compiler warnings
- RLS support
- Rust Analyzer support
to the xi-editor contributors, to Jake Goulding for the excellent play.rust-lang.org implementation, and to the Rust community at large.