Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delivery of a script #133

Open
manfredlotz opened this issue Jul 1, 2024 · 0 comments
Open

Delivery of a script #133

manfredlotz opened this issue Jul 1, 2024 · 0 comments

Comments

@manfredlotz
Copy link

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

  • running rust-script -p myscript.ers
  • look in for example ~/.cache/rust-script/projects/ed124eaf5e3ad7a29957e85f/Cargo.toml for the binary name
  • copy the binary from ~/.cache/rust-script/binaries/release/
  • and deliver it

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant