加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

rust – 更新注册表`https:// example.com /`

发布时间:2020-12-14 02:50:52 所属栏目:Windows 来源:网络整理
导读:正如 https://github.com/DaGenix/rust-crypto所说,我将此添加到我的rust-lib项目中: //Cargo.toml[dependencies]rust-crypto = "*"//lib.rsextern crate "rust-crypto" as rust_crypto; 得到了这个: $cargo build --verbose Updating registry `https://e
正如 https://github.com/DaGenix/rust-crypto所说,我将此添加到我的rust-lib项目中:

//Cargo.toml
[dependencies]
rust-crypto = "*"

//lib.rs
extern crate "rust-crypto" as rust_crypto;

得到了这个:

$cargo build --verbose
    Updating registry `https://example.com/`
Unable to update the package registry

Caused by:
  failed to fetch `https://example.com/`

Caused by:
  [16] hostname does not match certificate

没有“example.com”既不是我的项目,也不是他的lib.

解决方法

我不确定你为什么被投票.

当注册表设置为example.com时,您可能只有一个较旧的Cargo.你上次安装的时间是什么时候?

另见:这个reddit线程http://www.reddit.com/r/rust/comments/2mywa1/cargo_update_error_on_registry_httpsexamplecom/

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读