Giter Site home page Giter Site logo

Comments (6)

passcod avatar passcod commented on May 28, 2024 2

I think with git there's a way in the protocol to only fetch particular files or at least subtrees, which would make it a lot more efficient than cloning the repo, but a shallow clone is a good start.

from cargo-binstall.

NobodyXu avatar NobodyXu commented on May 28, 2024 2

@ryankurte @somehowchris @mpizenberg cargo-binstall v1.0.0 has released, which support this feature!

from cargo-binstall.

passcod avatar passcod commented on May 28, 2024 1

Yeah so this would be the same as cargo install --git https://..... Conceptually it would shallow-clone the repo then run as if it was invoked with --manifest-path cloned-repo, plus it would read the manifest and pick the crate name + version out of it if that's not provided on the command line.

from cargo-binstall.

somehowchris avatar somehowchris commented on May 28, 2024

I've seen that gitoxide would be an alternative to git2, @passcod you seem to have an eye on that project for some other things, would it be an option for something like this?

Would this only be for unpublished crates? Or in general something to get metadata from a git repository. i.e. for use at companies with a host such as gh enterprise, bitbucket,... and a binary host such as artifactory? Not that I propose a lock in for host cases but just the general purpose

from cargo-binstall.

NobodyXu avatar NobodyXu commented on May 28, 2024

Would this only be for unpublished crates? Or in general something to get metadata from a git repository. i.e. for use at companies with a host such as gh enterprise, bitbucket,... and a binary host such as artifactory? Not that I propose a lock in for host cases but just the general purpose

I'm also a little confused about this.

For unpublished crates, one piece of information we need is Cargo.toml, src/main.rs (if present) and anything under src/bins/ if present.

We don't actually care the content of src/main.rs or src/bins/*, but we need these vfs information in order to infer the list of binaries to install.

from cargo-binstall.

mpizenberg avatar mpizenberg commented on May 28, 2024

Also interested in this as I'd like to avoid pushing my binary crate to crates.io.

from cargo-binstall.

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.