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.27k stars 43 forks source link

Friendlier compilation progress #88

Open rfdonnelly opened 1 year ago

rfdonnelly commented 1 year ago

I would like to use rust-script to implement scripts that others will run. Most will not be familiar with Rust let alone rust-script. The default behavior makes it look like the script is hung when compilation is being performed silently. An alternative is to use the --cargo-output option but this is too much output and too foreign for those not familiar with Rust/rust-script.

It would be nice if rust-script could be made (via an option) to print a messages like "Performing an initial one-time compilation..." and "Performing a recompilation..." or similar (maybe just "Building...") to indicate that something is happening.

It would be even nicer if the cargo progress bar could be shown w/o all of the other cargo output. But maybe this needs support from cargo.