-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add a local filesystem registry type #2212
Comments
This might be covered by https://github.com/alexcrichton/cargo-vendor ? |
I've found myself wanting a way to use |
Isn't this already supported (poorly)? You can set |
@marcbowes sorta, yeah, but it's pretty painful and not exactly intended for that purpose :) |
Agreed on the painful (this is what I'm doing at work). I just wanted to point out that you can work around this without rewriting Cargo.toml files. |
@warner I encountered the same problem on a plane. I made a minor tweak to my Cargo.toml file, and cargo then refused to proceed without updating, which it couldn't do offline. I'd like to download an offline snapshot of a pile of Cargo dependencies, so that I can always build. |
I believe the main request in this issue is addressed by https://github.com/alexcrichton/cargo-vendor and https://github.com/alexcrichton/cargo-local-registry, and the offline issues are covered by #1882 and #3479. |
For the purpose of packaging Rust applications, Debian (and likely other distros) wants to also package all of the application's dependencies. They have tried doing this be rewriting registry dependencies into path dependencies and found it burdensome. What we want them to be able to do is construct a directory tree on the local filesystem that cargo understands as a new type of registry, and override cargo to use it instead of crates.io
The layout of this directory structure needs to be easily reproduced through scripting.
The text was updated successfully, but these errors were encountered: