{"id":16918456,"url":"https://github.com/cmyr/rustplayground","last_synced_at":"2025-05-08T00:07:40.638Z","repository":{"id":45143980,"uuid":"180033063","full_name":"cmyr/RustPlayground","owner":"cmyr","description":"Quickly test Rust code on macOS","archived":false,"fork":false,"pushed_at":"2022-03-29T15:39:09.000Z","size":1383,"stargazers_count":245,"open_issues_count":4,"forks_count":6,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-08T00:07:25.733Z","etag":null,"topics":["developer-tools","macos","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmyr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-07T22:48:41.000Z","updated_at":"2025-03-30T00:45:34.000Z","dependencies_parsed_at":"2022-07-25T01:47:48.640Z","dependency_job_id":null,"html_url":"https://github.com/cmyr/RustPlayground","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmyr%2FRustPlayground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmyr%2FRustPlayground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmyr%2FRustPlayground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmyr%2FRustPlayground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmyr","download_url":"https://codeload.github.com/cmyr/RustPlayground/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252973690,"owners_count":21834108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["developer-tools","macos","rust"],"created_at":"2024-10-13T19:40:01.965Z","updated_at":"2025-05-08T00:07:40.583Z","avatar_url":"https://github.com/cmyr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":" \u003ca href='http://www.recurse.com' title='Made with love at the Recurse Center'\u003e\u003cimg src='https://cloud.githubusercontent.com/assets/2883345/11325206/336ea5f4-9150-11e5-9e90-d86ad31993d8.png' height='20px'/\u003e\u003c/a\u003e\n\n# Rust Playground for MacOS\n\n***status***: experimental / pre-release / guaranteed buggy\n\nThe Rust Playground for MacOS is a standalone native mac application that allows quickly editing and testing rust snippets.\n\n![Rust Playground Screenshot](https://raw.githubusercontent.com/cmyr/RustPlayground/screenshots/playground-0.2.png)\n\n## installation\n\nYou can download a disk image of a recent build on [the releases page](https://github.com/cmyr/RustPlayground/releases).\n\n### requirements\n\nThe playground [requires rustup](https://rustup.rs), and allows code to be run with any installed toolchain.\n**note**: Rustup must currently be in the default directory, `$HOME/.rustup`.\n\n### install from source (requires Xcode)\n\n- clone this repository\n- cd in to the `RustPlayground` directory\n- run `xcodebuild` from the command line\n- copy `build/Release/Rust Playground.app` to your `Applications` directory\n\n## About\n\nThis project is based on a fork of the [xi-editor core](https://github.com/xi-editor/xi-editor). 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.\n\nDocument state is handled in rust; the swift frontend interfaces with the rust code via FFI.\n\n### Features\n\n- syntax highlighting\n- font selection\n- auto-indent\n- comment toggling\n- line breaking\n- extern crates (with a hacky custom syntax for declaring imports)\n- use any installed toolchains\n\n\n### Known issues\n\n- Performance is not great; it is expected that documents are only ever a few hundred lines.\n- Drawing is hacky. We may draw ghost selections.\n\n\n### TODO\n- ~export to gist / web playground~\n- export to new cargo project?\n- rustfmt / clippy\n- multiple documents, saving snippets?\n- ASM / IR output\n\n\n### One day, maybe\n- integrate with [cargo-instruments](https://crates.io/crates/cargo-instruments)\n- benchmarking\n- inline compiler warnings\n- autocomplete\n- RLS support\n- [Rust Analyzer](https://www.github.com/rust-analyzer/rust-analyzer) support\n\n\n## Thanks\n\nto the [xi-editor contributors](https://github.com/xi-editor/xi-editor/blob/master/AUTHORS), to [Jake Goulding](https://github.com/shepmaster/) for the excellent [play.rust-lang.org](https://play.rust-lang.org) implementation, and to the Rust community at large.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmyr%2Frustplayground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmyr%2Frustplayground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmyr%2Frustplayground/lists"}