Rustx invoke cargo-script.
https://doc.rust-lang.org/reference/crates-and-source-files.html
cargo install rustx
, cargo install cargo-script
create a file, for example, hello.rs
as below, then chmod +x hello.rs
, ./hello.rs
.
``` rust
fn main() { println!("Hello!"); } ```
Licensed under either of these:
Please sign a cla, thanks!