Comments (6)
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.
@ryankurte @somehowchris @mpizenberg cargo-binstall v1.0.0 has released, which support this feature!
from cargo-binstall.
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.
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.
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.
Also interested in this as I'd like to avoid pushing my binary crate to crates.io.
from cargo-binstall.
Related Issues (20)
- cargo-binstall doesn't work behind corporate firewall HOT 3
- How to use binstall to download bin in *musl.tar.gz release package? HOT 7
- Please add support for scoop install in win10 HOT 4
- How to list installed binary? HOT 3
- Upgrade to hyper 1.0 once reqwest completed the upgrade HOT 1
- where is the cached downloaded file? HOT 1
- How to download bin with get/put but not git-api-token ? HOT 1
- How to skip fatal error HOT 4
- Using `cargo-binstall` with `cargo-run-bin` for fast CI in GitHub Actions HOT 4
- not updating .crates2.json HOT 5
- CI: add retry for steps/jobs on timeout. HOT 5
- feature: Improve retrying logic
- `detect-target` does not work on android HOT 4
- Unmatched checksum installing deno HOT 3
- Move some workspace crates into a separate repository HOT 7
- Support non-rust crates HOT 1
- Replace windows-dll with manual loading
- cargo install cargo-binstall failing with gix-ref v0.41.0 HOT 2
- Install of version 1.6.3 based on lockfile lead to a bad dep HOT 5
- Deno installation failing via cargo-binstall HOT 1
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 cargo-binstall.