Comments (9)
Deployed! this should now work!
from crates.io.
as a packager, i need this. i need to point to a file and say “download this and verify with that sha1” instead of “let something download stuff for me”
from crates.io.
This was originally offered, but this is somewhat nuanced. The fact that the download is a tarball is an implementation detail, so this would need to be accompanied with equivalent support in Cargo itself it inspect and unpack the .crate
file that was downloaded.
from crates.io.
There needs to be some pointer to the source, regardless what's in the projects Cargo.toml
.
Take for ex. https://crates.io/crates/servo-glutin/0.4.10 the only link is to https://github.com/tomaka/glutin which doesn't even have a 0.4.10 version/tag (and this is actually the servo/glutin repo).
The servo/glutin repo only has a servo-0.4.10
tag, which I don't know if is the version on crates.io
from crates.io.
So the URLs https://crates.io/api/v1/crates/name/version/download work, but that's not really exposed anywhere.
In what manner would yinz want to see this exposed? API docs? A link on the crate page?
from crates.io.
So the URLs https://crates.io/api/v1/crates/name/version/download work
It doesn't work anymore; it used to in the past, but I tried it with a few crates and it didn't do the trick, at least not with a browser.
related Stack Overflow question
from crates.io.
It doesn't work anymore; it used to in the past, but I tried it with a few crates and it didn't do the trick, at least not with a browser.
It won't work with a browser, no, but curl
should work.
from crates.io.
It won't work with a browser, no, but curl should work.
I checked it; it works.
I would suggest describing this download method in the API docs, especially since it is not trivial - you need to pass the -L option (follow redirects), otherwise you may not receive anything. In addition, although the downloaded file's extension is .crate (and after unzipping it the file has a .crate extension again), it is a tarball (.tar.gz).
from crates.io.
It should work in the browser after the next deploy
from crates.io.
Related Issues (20)
- Download graphs not starting at y=0
- `recent_crate_downloads` materialised view is not refreshed with the new download counting implementation HOT 1
- 'Browse All Crates' results in `Something Went Wrong!' HOT 1
- API token expiry warning emails HOT 5
- Name squatting: Can't find current owner's contact info HOT 2
- Tracking Issue for Packages as (optional) namespaces HOT 3
- README example rendering doesn't hide lines HOT 2
- An internal server error on crates.io website HOT 1
- Remove usage of EmberJS in the front-end? HOT 3
- Status 403 Forbidden HOT 1
- Image rendered wrongly HOT 3
- Crates with paths differing only by case are allowed HOT 2
- Unable to add owner via CLI; kinda works via web HOT 4
- GitHub special Markdown blocks aren't rendered in README section
- Policy page is missing indentation, changing its meaning HOT 1
- Failed to log in: Error obtaining token after logging out HOT 9
- Broken CONTRIBUTING link for crate `cargo-cyclonedx` HOT 7
- creates-io team outbound link, on the footer of creates.io - 404 not found at target
- internal server error when searching "using" HOT 2
- Why I am removed from my crates? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crates.io.