rustx

Rustx invoke cargo-script.

APACHE-2.0 License

Downloads
1.1K
Stars
0

rustx

Rustx invoke cargo-script.

https://doc.rust-lang.org/reference/input-format.html

Usage

  1. cargo install rustx, cargo install cargo-script

  2. create a file, for example, hello.rs as below, then chmod +x hello.rs, ./hello.rs.

#!/usr/bin/env rustx

fn main() {
    println!("Hello!");
}

License

Licensed under either of these:

Contributing

Please sign a cla, thanks!