Rustx invoke cargo-script.
APACHE-2.0 License
Rustx invoke cargo-script.
https://doc.rust-lang.org/reference/input-format.html
cargo install rustx
, cargo install cargo-script
create a file, for example, hello.rs
as below, then chmod +x hello.rs
, ./hello.rs
.
#!/usr/bin/env rustx
fn main() {
println!("Hello!");
}
Licensed under either of these:
Please sign a cla, thanks!