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

Allow cargo-script to run programs directly from online package source. #3

Open
DanielKeep opened this issue Jun 5, 2015 · 2 comments

Comments

@DanielKeep
Copy link
Owner

Presumably, this would be crates.io and possibly GitHub and/or raw Git urls. Something like:

  • cargo script pkg:some-tool - fetch, build and execute the latest version of the some-tool package from crates.io.
  • cargo script pkg:many-tools,frob - fetch and build the latest version of the many-tools package from crates.io, and run the frob binary.
  • cargo script gh:DanielKeep/cargo-script -- script pkg:many-tools(1.1),glom - fetch, build and execute the master branch of the DanielKeep/cargo-script repository from GitHub, which will then fetch and build the many-tools package from crates.io with version spec ^1.1, and then run the glom binary.
@DanielKeep
Copy link
Owner Author

See #7.

@DanielKeep
Copy link
Owner Author

Given that cargo install means we're starting to get more actual binaries on crates.io, this should be even more useful.

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