Coder Social home page Coder Social logo

Comments (9)

carols10cents avatar carols10cents commented on June 4, 2024 3

Deployed! this should now work!

from crates.io.

flying-sheep avatar flying-sheep commented on June 4, 2024 1

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.

alexcrichton avatar alexcrichton commented on June 4, 2024

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.

gdamjan avatar gdamjan commented on June 4, 2024

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.

carols10cents avatar carols10cents commented on June 4, 2024

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.

ljedrz avatar ljedrz commented on June 4, 2024

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.

carols10cents avatar carols10cents commented on June 4, 2024

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.

ljedrz avatar ljedrz commented on June 4, 2024

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.

sgrif avatar sgrif commented on June 4, 2024

It should work in the browser after the next deploy

from crates.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.