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

Exec the file instead of using cargo run #73

Closed fornwall closed 1 year ago

fornwall commented 1 year ago

This change makes rust-script execute the built binary directly (if it's newer than the generated Cargo.toml and main.rs files).

Let's drop --features (it can be added back if people are using it - it's just necessary to --force a rebuild if changing the features).