Run A Single File As A Script With Rust
Right now, it's in nightly, so you do this:
Code
#!/usr/bin/env cargo +nightly -Zscript
//! ```cargo
//! [package]
//! edition = "2021"
//! [dependencies]
//! ```
fn main() {
println!("hello, script");
}