https://github.com/ryym/rustplay
Execute Rust on Rust playground from terminal
https://github.com/ryym/rustplay
rust rust-playground
Last synced: 12 months ago
JSON representation
Execute Rust on Rust playground from terminal
- Host: GitHub
- URL: https://github.com/ryym/rustplay
- Owner: ryym
- Created: 2017-12-11T13:48:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-10T14:55:04.000Z (almost 8 years ago)
- Last Synced: 2025-04-08T20:16:43.461Z (about 1 year ago)
- Topics: rust, rust-playground
- Language: Rust
- Homepage:
- Size: 32.2 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# rustplay
Run Rust code through [Rust Playground](https://play.rust-lang.org/).
```sh
$ cat a.rs
fn main() {
println!("{}", 123);
}
$ rustplay -r a.rs
123
$ rustplay -o a.rs
# => Open Playground website
```
```sh
$ rustplay -h
Usage: rustplay [options] FILE
NOTE: -r or -o is required
Options:
-h, --help print this help message
-r, --run compile and run given code using Rust Playground
-o, --open open Rust Playground with given code
-c, --channel stable|beta|nightly
chose release channel which compiles code
-m, --mode debug|release
chose compilation mode
```
I created this on a whim inspired by [haya14busa/goplay](https://github.com/haya14busa/goplay).