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

Streamlining running examples #66

Closed
lgarczyn opened this issue Jan 29, 2019 · 3 comments
Closed

Streamlining running examples #66

lgarczyn opened this issue Jan 29, 2019 · 3 comments

Comments

@lgarczyn
Copy link

lgarczyn commented Jan 29, 2019

A large part of my workflow is to clone a library (say rust-sdl2) in a /tmp/ folder, open a new tab in that folder, and call cargo --example on one of the listed examples, then go back to what I was doing.

A cargo plugin (and maybe a feature later on) allowing to run cargo example rust-sdl2 example-n1 that would just work, without having to create a whole folder ourselves, and maybe even caching large libraries, would be a godsend.

If it is made part of cargo itself, trying out a crate becomes even faster. Anyone can just write in their repo: call cargo example mylib example-n1 and be over with it.

Some sandboxing might even be added for more safety.

@ErichDonGubler
Copy link
Collaborator

Hmmm, this sounds like a shoe-in for a Cargo subcommand...and this suggestion might be a better fit for Request for Implementation, where several interesting subcommand requests already exist! I don't see a ton of design/ecosystem work here to do, which is the direction I think NYAR should go.

So, in summary, I don't think I'll be putting this here, but I'd be absolutely happy to file this in RfI if you want!

@lgarczyn
Copy link
Author

I ended up creating the RFI, thanks for the suggestion.

@ErichDonGubler
Copy link
Collaborator

@lgarczyn: Wonderful! Is there anything else I can do for you here, or should this just be closed?

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

2 participants