{"id":13500368,"url":"https://github.com/grafov/rust-playground","last_synced_at":"2025-04-10T00:21:46.888Z","repository":{"id":14706914,"uuid":"76903658","full_name":"grafov/rust-playground","owner":"grafov","description":"GNU/Emacs mode that setup local playground for code snippets in Rust language.","archived":false,"fork":false,"pushed_at":"2021-11-23T07:33:26.000Z","size":238,"stargazers_count":49,"open_issues_count":5,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T02:05:42.021Z","etag":null,"topics":["emacs","emacs-mode","melpa","playground","repl","rust","rust-language","rust-playground"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grafov.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":"2016-12-19T22:52:14.000Z","updated_at":"2025-03-19T14:47:10.000Z","dependencies_parsed_at":"2022-08-07T08:00:29.803Z","dependency_job_id":null,"html_url":"https://github.com/grafov/rust-playground","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/grafov%2Frust-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafov%2Frust-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafov%2Frust-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grafov%2Frust-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grafov","download_url":"https://codeload.github.com/grafov/rust-playground/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248132124,"owners_count":21052978,"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":["emacs","emacs-mode","melpa","playground","repl","rust","rust-language","rust-playground"],"created_at":"2024-07-31T22:00:57.640Z","updated_at":"2025-04-10T00:21:46.856Z","avatar_url":"https://github.com/grafov.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"\u003c!-- *- mode:markdown;mode:orgtbl;fill-column:99 -* --\u003e\n# rust-playground [![MELPA Stable](https://stable.melpa.org/packages/rust-playground-badge.svg)](https://stable.melpa.org/#/rust-playground) [![MELPA](https://melpa.org/packages/rust-playground-badge.svg)](https://melpa.org/#/rust-playground)\n\nGNU/Emacs mode that setup local playground for code snippets in Rust language.  This is a port of\n[go-playground](https://github.com/grafov/go-playground) adapted for Rust environment.\n\n## Install\n\nInstall `rust-playground` from MELPA:\n\n    M-x package-install RET rust-playground\n\nThe mirror repository of the project: https://notabug.org/grafov/rust-playground.\nI really not think that this small project need the mirror but I just would like advertise a nice\ngit hosting for FOSS. Try [notabug.org](https://notabug.org) for your projects! :)\n\nExample screen after creation of a new snippet:\n\n![screenshot](rust-playground-after-start.png)\n\n## Usage\n\n### Quick start\n\n1. From any mode run `M-x rust-playground` for start a new playground buffer filled with basic\n   template for the package with main function (see the picture below).\n1. Add your code then press `Ctl-Return` (it bound to `rust-playground-exec` command). It will save,\n   compile and exec the snippet code.\n1. When you played enough with this snippet just run `M-x rust-playground-rm`. It will remove the\n   current snippet with its directory and all files.\n\n### List of interactive functions\n\n\u003c!---\n#+ORGTBL: SEND keys orgtbl-to-gfm\n| Function name              | Description                                                          |\n|----------------------------+----------------------------------------------------------------------|\n| `rust-playground`          | Create a new playground buffer with basic template for the package.  |\n| `rust-playground-download` | [WIP] Download the snippet from the URL at play.rust-lang.org.       |\n| `rust-playground-exec`     | Save, compile and run the code of the snippet.                       |\n| `rust-playground-upload`   | [WIP] Upload the buffer to play.golang.org and return the short URL. |\n| `rust-playground-rm`       | Remove the snippet with its directory with all files.                |\n--\u003e\n\u003c!--- BEGIN RECEIVE ORGTBL keys --\u003e\n| Function name | Description |\n|---|---|\n| `rust-playground` | Create a new playground buffer with basic template for the package. |\n| `rust-playground-download` | [WIP] Download the snippet from the URL at play.rust-lang.org. |\n| `rust-playground-exec` | Save, compile and run the code of the snippet. |\n| `rust-playground-upload` | [WIP] Upload the buffer to play.golang.org and return the short URL. |\n| `rust-playground-rm` | Remove the snippet with its directory with all files. |\n\u003c!--- END RECEIVE ORGTBL keys --\u003e\n\n## Project status\n\nThe plugin is usable. I've stopped learning Rust yet so this Emacs plugin not very interesting for\nme. But I'll continue to maintain it and backport features from `go-playground`. Patches are\nwelcomed!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrafov%2Frust-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrafov%2Frust-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrafov%2Frust-playground/lists"}