• Stars
    star
    238
  • Rank 169,306 (Top 4 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Quickly test Rust code on macOS

Rust Playground for MacOS

status: experimental / pre-release / guaranteed buggy

The Rust Playground for MacOS is a standalone native mac application that allows quickly editing and testing rust snippets.

Rust Playground Screenshot

installation

You can download a disk image of a recent build on the releases page.

requirements

The playground requires rustup, and allows code to be run with any installed toolchain. note: Rustup must currently be in the default directory, $HOME/.rustup.

install from source (requires Xcode)

  • clone this repository
  • cd in to the RustPlayground directory
  • run xcodebuild from the command line
  • copy build/Release/Rust Playground.app to your Applications directory

About

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.

Features

  • syntax highlighting
  • font selection
  • auto-indent
  • comment toggling
  • line breaking
  • extern crates (with a hacky custom syntax for declaring imports)
  • use any installed toolchains

Known issues

  • Performance is not great; it is expected that documents are only ever a few hundred lines.
  • Drawing is hacky. We may draw ghost selections.

TODO

  • export to gist / web playground
  • export to new cargo project?
  • rustfmt / clippy
  • multiple documents, saving snippets?
  • ASM / IR output

One day, maybe

Thanks

to the xi-editor contributors, to Jake Goulding for the excellent play.rust-lang.org implementation, and to the Rust community at large.

More Repositories

1

cargo-instruments

A cargo plugin to generate Xcode Instruments trace files
Rust
502
star
2

anagramatron

twitter anagram hunter
Python
143
star
3

keypath

Swift-style keypaths in Rust
Rust
58
star
4

rust-dash-docset-gen

Quickly generate Dash docsets for third-party Rust crates
Python
26
star
5

fea-rs

Parsing and compiling adobe feature files
Rust
13
star
6

poetryutils2

better poetry utils
Python
9
star
7

INTERESTING_JPG

simple bot that posts CV descriptions of images to twitter
Python
7
star
8

lsp-client

playing with the language server protocol in Rust.
Rust
5
star
9

anagram-review-ios

small iOS app for reviewing twitter anagrams
Objective-C
5
star
10

rust-python-drawing

Drawing to a rust graphics context from a python script
Rust
3
star
11

twitter-zmq-stream

utility for connecting to the twitter stream and publishing it locally to consumers via ØMQ
Python
3
star
12

bloat-cmp

😵
JavaScript
3
star
13

druid-template

hello dolly
Rust
2
star
14

xi-rustfmt

A rustfmt plugin for xi-editor
Rust
2
star
15

haikubot

a little bot that assembles haiku from tweets
Python
2
star
16

gnudbm

Ergonomic Rust bindings for gdbm
Rust
2
star
17

advent-2017

Jupyter Notebook
2
star
18

xi-future

experiments towards a future's based runloop for xi
Rust
2
star
19

pars

Deriving FromStr
Rust
2
star
20

twitter-text-tools

python tools for working with twitter data
Python
2
star
21

cargo-clean-all

A small utility script to recursively clean cargo projects
Python
2
star
22

ttx-rs

ttx, rs
Rust
1
star
23

ios-keyboard-type-selector

An iOS project for debugging Keyboard Types
Swift
1
star
24

rust-from-python-example

demo rust->python bindings
Rust
1
star
25

poetryutils

python tools for working with metre and rhyme
Python
1
star
26

aoc2018

Advent of Code 2018
Rust
1
star
27

poetastr

programatic poetry generation
Python
1
star
28

norad

Rust
1
star
29

bitflipper

Flipping bits in strings?
Rust
1
star
30

rust-buffer-bench

Benchmarking Rust text buffer implementations
Rust
1
star