Skip to content

Download button #2113

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

Closed
hvenev opened this issue Jan 10, 2020 · 3 comments
Closed

Download button #2113

hvenev opened this issue Jan 10, 2020 · 3 comments

Comments

@hvenev
Copy link

hvenev commented Jan 10, 2020

I think it would be nice to have an easy way to download source tarballs from crates.io that are equivalent to what cargo uses.

@jtgeibel
Copy link
Member

jtgeibel commented Jan 15, 2020

I think crates like cargo-clone and cargo-download are good, portable alternatives. We originally had a download button, but it was removed a long time ago (late 2014). While some platforms bundle support for gzipped tar files and auto-detect our file type, unfortunately some common platforms do not.

Also see #15 and #1219 for previous discussions.

@hvenev
Copy link
Author

hvenev commented Jan 15, 2020

Right... there is no way to download cargo-clean or cargo-download without either cargo-clean or cargo-download.

What I'm trying to say is, downloading from crates.io should not require using cargo.

@jtgeibel
Copy link
Member

You can install via cargo install cargo-clone (sorry, I had a typo in the previous comment). It's also possible to hit the API endpoint directly to download a crate, but it's not possible to provide a smooth, cross-platform experience without some client side code.

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

Successfully merging a pull request may close this issue.

2 participants