Skip to content

Delivery of a script #133

@manfredlotz

Description

@manfredlotz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions