Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/rust/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Rust 更新注册表`https://example.com/`_Rust - Fatal编程技术网

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

Rust 更新注册表`https://example.com/`,rust,Rust,如前所述,我在我的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

如前所述,我在我的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时,您可能只有一个较旧的货物。你上次安装它是什么时候


另请参见:这个reddit线程

关于否决票,我发现人们在生锈问题上的否决票比C#更快。(我必须稍后再来,然后,我通常认为他们是积极的。