IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    腾讯云使用内网源加速Rust构建

    ysicing (i@ysicing.me)发表于 2024-03-27 14:12:13
    love 0

    接着腾讯云轻量上安装Rust编译realm说,后面找腾讯云产品沟通了一下

    rust镜像仓库地址:registry = "http://rust.mirrors.tencent.com/index"
    使用请参考官方文档 https://doc.rust-lang.org/cargo/index.html

    编辑 ~/.cargo/config.toml

    [source.crates-io]
    registry = "https://github.com/rust-lang/crates.io-index"
    
    replace-with = 'tencent'
    
    [source.tencent]
    
    registry = "http://rust.mirrors.tencent.com/index"
    
    [net]
    
    git-fetch-with-cli = true
    

    切换源后cargo check报错需要删除缓存文件 .cargo/.package-cache



沪ICP备19023445号-2号
友情链接