fornwall / rust-script

Run Rust files and expressions as scripts without any setup or compilation step.
https://rust-script.org
Apache License 2.0
1.25k stars 43 forks source link

Question: relationship with cargo-script on nightly ~~> stable ? #139

Open ethanmsl opened 1 month ago

ethanmsl commented 1 month ago

A question: Stabilization of cargo-script is one of main 2024 goals for the Rust Project

And we can currently run scripts using just cargo on nightly with

cargo +nightly -Zscript <file.rs> <args/flags>

How similar are rust-script with what's being stabilized?

I'd like to do more of my shell and scripting work in Rust and I'm not sure what design decisions might be impacting when a standard cargo-script is eventually rolled out. (things like locations mapped to different elements of scripts, any helper type in the environment, etc.)

Any sense of how these two interface (or don't) would be wonderful.