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

Exploring a "cargo-script" in rustup #46

Closed epage closed 2 years ago

epage commented 2 years ago

Would appreciate feedback on my research and proposal.

epage commented 2 years ago

Closing as this was more intend to ping people. Let's continue any discussion in the linked issue or its repo

epage commented 1 year ago

FYI I've finally got back to this and created a Pre-RFC

fornwall commented 1 year ago

@epage Thanks - I missed this previously!

Looks interesting and useful, nice work driving this.

Is the initial proposal here to bundle this by default when a user installs rust using rustup, or would it be an optional, additional install?

epage commented 1 year ago

Bundled by default. As I called out, there is still room for rustscript for extra caching and --expr flag (as I'm reserving that for the repl).

Btw I caught that windows bug because I ported the test scripts to Rust. Feel free to checkout my tests directory to see how I do it with snapbox.