2014-11-21 73 views
5

作爲https://github.com/DaGenix/rust-crypto說,我說這個我鐵鏽的lib項目:更新註冊表`的https:// example.com /`

//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。

回答

2

我不確定你爲什麼被低估。

當註冊表設置爲example.com時,您可能只是有一個較舊的Cargo。你最後一次安裝它是什麼時候?

另見:本reddit的線程http://www.reddit.com/r/rust/comments/2mywa1/cargo_update_error_on_registry_httpsexamplecom/

+0

關於downvotes,我發現人是快downvote上相比,我們說C#鏽病的問題。 – Gilles 2014-11-21 19:10:55

+0

:(我必須晚一些來,然後,我通常看到他們的積極。 – 2014-11-21 19:13:00