我的专栏地址:我的segmentfault,欢迎浏览
背景
公司内部要使用或推广必须要满足私有性和保密性,公司内部的代码是不可以公开到公网上的。rust的公开代码仓库是crates.io,那么私有仓库的解决方案是什么?我们一起来探索一下。
国外网站reddit有人发出了对私有仓库的需求并提问到:
Private “crates.io”
Hi,
I’m trying to advocate for Rust in my company, and one of the needs will be to have our own “crates.io” so our (closed source) crates can be managed by cargo.
Is there a way to do that appart from specifying git urls?
另外,这位程序员还不想通过git来管理仓库,因为他的公司不用git。
withoutboats大牛的解决方案来了!2017年10月,他说道:
本周,cargo获得了一个新功能!现在您可以从其他仓库下载依赖包也可以从ractes.io下载的依赖包。这是重要的一步,使组织能够通过car