gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 07:51:37 26 4
gpt4 key购买 nike

作为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”。

最佳答案

我不确定你为什么被否决。

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

另请参阅:此 reddit 线程 http://www.reddit.com/r/rust/comments/2mywa1/cargo_update_error_on_registry_httpsexamplecom/

关于rust - 更新注册表 `https://example.com/`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27067749/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com