1 unstable release
0.0.0 | Feb 15, 2019 |
---|
#13 in #cargo-script
7KB
reventsource
Rustx invoke cargo-script.
https://doc.rust-lang.org/reference/crates-and-source-files.html
Usage
-
cargo install rustx
,cargo install cargo-script
-
create a file, for example,
hello.rs
as below, thenchmod +x hello.rs
,./hello.rs
.
#!/usr/bin/env rustx
fn main() {
println!("Hello!");
}
License
Licensed under either of these:
- Apache License Version 2.0 LICENSE-APACHE
- MIT License LICENSE-MIT
Contributing
Please sign a cla, thanks!