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.2k stars 41 forks source link

Delivery of a script #133

Open manfredlotz opened 1 month ago

manfredlotz commented 1 month ago

First of all, rust-script is really great.

I have one use case where I would need to have the created binary of a script. Let's say I have developed a script which I would like to make available to all users of a system.

In this case it would be bad if each user would need to have a rust toolchain installed. Specifically for user root this is not a good idea IMHO.

Manually I could get the binary by

Question: wouldn't it be a good idea to offer this as a function which could perhaps be called like this? rust-script --delivery myscript.ers