美文网首页
Cargo记录-vendor

Cargo记录-vendor

作者: 张益达同志 | 来源:发表于2020-03-09 18:33 被阅读0次

中文的cargo文档,地址

  • 对于更换源或者使用本地源的情况
    1、更换源简单,直接修改config文件即可.cargo/config
    中科大源
  [source.crates-io]
  replace-with = 'ustc'
  
  [source.ustc]
  registry = "git://mirrors.ustc.edu.cn/crates.io-index"

2、在本地生成vendor仓库目录源
使用cargo-vendor
先安装cargo install cargo-vendor
执行命令,在Cargo.toml目录。

cargo vendor --manifest-path Cargo.toml  --respect-source-config

会生成vendor(默认)目录存放下载包

相关文章

网友评论

      本文标题:Cargo记录-vendor

      本文链接:https://www.haomeiwen.com/subject/qzapdhtx.html