Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd a local filesystem registry type #2212
Comments
This comment has been minimized.
This comment has been minimized.
|
This might be covered by https://github.com/alexcrichton/cargo-vendor ? |
This comment has been minimized.
This comment has been minimized.
warner
commented
Dec 20, 2015
|
I've found myself wanting a way to use |
This comment has been minimized.
This comment has been minimized.
|
Isn't this already supported (poorly)? You can set |
This comment has been minimized.
This comment has been minimized.
|
@marcbowes sorta, yeah, but it's pretty painful and not exactly intended for that purpose :) |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
@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. |
tylerwhall
referenced this issue
Jul 4, 2016
Closed
Integrate Cargo into the Bitbake package system #52
This comment has been minimized.
This comment has been minimized.
|
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. |
brson commentedDec 16, 2015
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.