Skip to content

ryym/rustplay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rustplay

Run Rust code through Rust Playground.

$ cat a.rs
fn main() {
    println!("{}", 123);
}
$ rustplay -r a.rs
123
$ rustplay -o a.rs
# => Open Playground website
$ 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.

About

Execute Rust on Rust playground from terminal

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages